I’m running Fedora 40 KDE on x11, and I’m trying to set a keyboard shortcut that blanks and wakes my displays without any other input from my mouse or keyboard waking them. Unfortunately I have a cat who likes to walk over my keyboard.
Things I’ve tried:
- Bind a key combo to a script that toggles between
xset dpms force on
andxset dpms force off
. I tried adding logic that would disable/enable inputs withxinput --set-prop
, but of course I can’t send a key combo with a disabled keyboard. - Turn off/on my displays with ddcutil. Turning off works great, but my stupid AOC Q27G3XMN doesn’t adhere to VESA standards and drops DDC/CI communication when turned off, so it can’t then be turned back on via ddcutil.
I specifically want to execute a script with mentioned key combo to wake my displays so I can also trigger other logic at the same time, for example turning on my PC lighting. I’m open to suggestions for how to accomplish the end result through other mechanisms as well.