- setting type: secure
- name: accessibility_display_daltonizer_enabled
- input type: toggle
- value: 3
That task then toggles greyscale mode, so you can hook it up to an application context or whatever. (Switch the value to 1 if you want a task that always enables greyscale, or 2 to always disable.)