Sample Header Ad - 728x90

A simple global keyboard shortcut handler

1 vote
1 answer
1702 views
Yeah, I know there's actkbd which allows to assign global keyboard shortcuts which will work everywhere including the text console and a graphical session but I don't want to run an extra daemon (long unmaintained as well) for a single keyboard shortcut. I want something a lot simpler with no configuration options and which has the absolute minimum amount of code. The task is to run a command when this key combination is pressed: Win + End -> systemctl suspend This is probably worth posting in stackoverflow.com instead but I'm not entirely sure.
Asked by Artem S. Tashkinov (32740 rep)
Mar 23, 2022, 02:11 PM
Last activity: Mar 24, 2022, 05:44 PM