I need to run custom comand when:
- Computer is idle for X minutes (no key pressed)
- Key pressed
What I want o achieve actually is power saving feature for my keyboard.
I want to use:
g413-led -a 000000 g413-led -a FFFFFF
To turn on/off keyboard backlight using https://github.com/MatMoul/g810-led.
The first is fairly easy using one of:
Please advice if there are better, more optimal ways?
But what about lighing it up again on keypress or resume from idle? I guess running command on each keypress is overkill. Is there event for power saving options? How does display power saving works?
Can I reuse same events/timeout?