|HK(1)||General Commands Manual||HK(1)|
hk — Set temporary
hk allows temporary X11 hotkeys to be set.
hk Ctrl+Shift+F6 notify-send Hello
will execute the command “notify-send Hello” when
“Ctrl+Shift+F6” is pressed.
as soon as the command has executed.
The options are as follows:
hkto wait until all keys (not just the hotkey) are released before executing command.
The particular modifiers available depend on XKB's interpretation of your physical keyboard, but typically include Ctrl / Control, Shift, and so on. Modifiers are case insensitive. key is case sensitive and again depends on XKB 's interpretation of your physical keyboard. If in doubt, xev(1) can be used to find out the XKB name of a physical key.
hkpasses stdin, stdout, and stderr unchanged to command.
hk was written by
hk ignores the Caps Lock and Num Lock
modifiers when determining if hotkey has been pressed, but
other keyboard modifiers (which you may or may not be aware of!) can prevent
hotkey being triggered.
|December 12, 2021||OpenBSD 7.1|