Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional / Time / Key commands #563

Open
emoacht opened this issue Jan 22, 2024 · 8 comments
Open

Conditional / Time / Key commands #563

emoacht opened this issue Jan 22, 2024 · 8 comments

Comments

@emoacht
Copy link
Owner

emoacht commented Jan 22, 2024

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.

@emoacht
Copy link
Owner Author

emoacht commented Jan 30, 2024

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.

@emoacht emoacht changed the title Conditional / Time commands Conditional / Time / Key commands Jan 30, 2024
@fredless
Copy link

fredless commented Feb 7, 2024

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.

@emoacht
Copy link
Owner Author

emoacht commented Feb 8, 2024

@fredless In such case, use existing hotkeys which can be set at Key Settings.

@emoacht
Copy link
Owner Author

emoacht commented Feb 8, 2024

Added Command Settings for browsing the current commands.

@fredless
Copy link

@fredless In such case, use existing hotkeys which can be set at Key Settings.

I'm not following you completely. Example:

  1. I have a display at brightness 30
  2. 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
  3. if I press the same key again, I would like the brightness to then go to 40...
  4. 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.

@emoacht
Copy link
Owner Author

emoacht commented Feb 21, 2024

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.

@mrbryce
Copy link

mrbryce commented Mar 31, 2024

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.

@emoacht
Copy link
Owner Author

emoacht commented Apr 7, 2024

@mrbryce I am not sure whether such feature could be a solution for your issue. I think you need to identify the tool which changes the brighntess and stop it. Could you elaborate more?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants