My idea is to dim the display when the system is idle for 10 seconds, and with a keystroke or trackpad activity revert to original (I want to preserve battery automatically and not using a screen saver - I need to monitor some activity but with low display light). I could not find such application so I decided to make solution with Automator.
I found application Shady which can dim display when it start and if it is active (in front) with keystroke Q will quit.
So, how can I make a script in Automator to start Shady when the system is idle for 10 seconds and then wait for any keystroke or trackpad activity, then send keystroke q
to quit Shady? The script should be active all the time, so when another 10 second idle time happens, start Shady again.