Conditional / Time / Key commands
emoacht opened this issue · 8 comments
Conditional / Time commands are added to command-line options (add-on features) for setting brightness or contrast of a monitor or all monitors.
- Conditional Commands - a series of commands to be executed when a specified condition is met
- Time Commands - a series of commands to be executed when a specified daily due time comes
These commands must be specified in JSON files and loaded with /load
option and conditional
or time
sub-options respectively.
Please check the actual specifications as well as JSON samples and schemas at above links.
As another variation of customizable commands, Key commands are added.
- Key Commands - a series of commands to be executed when a specified hot key is pressed
To use this commands, load the JSON file with /load
option and key
sub-option.
Directly related to #567: can key commands be used to incrementally raise and lower a value on a repeated keypress? i.e. a hotkey for brighter and a hotkey for dimmer? It seems the key command schema only takes a static value at this time.
Added Command Settings for browsing the current commands.
@fredless In such case, use existing hotkeys which can be set at Key Settings.
I'm not following you completely. Example:
- I have a display at brightness 30
- I would like to be able to program a key command that I can press that will raise the brightness +5, in this case making it 35
- if I press the same key again, I would like the brightness to then go to 40...
- and again, 45... and so on
it seems like the way the command syntax works right now, I can only go to a predefined single value on a keypress.
The hot keys to increment or decrement brightness of a specific monitor have been alreadly there before adding these key commands.
Hit "Set keys" and "Key Settings" window will open. Click the arrow key at the right top and the window will expand horizontally. Then "Brightness (indivisual monitor)" will appear at right column.
monitorian can set the brightness alright, but whenever i switch tabs or windows my screen reverts to default brightness.
since i cant seem to figure out what causes it (HW acceleration, drivers) resetting it at timed intervals would be nice.