1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-09-13 18:41:35 +02:00
Files
wiki/wiki/linux/sxhkd.md
tiyn c03daea525 Corrected various typographic errors
- substituted en-dash for hyphen where needed
- renamed files to avoid confusion due to identical name
- added links
- fixed capitalization
- fixed line breaks
2026-07-02 09:12:29 +02:00

1.3 KiB
Raw Blame History

SXHKD

SXHKD short for Simple X hotkey daemon is a program to set hotkeys.

Setup

On most Linux distributions SXHKD can be installed with the sxhkd package. Alternatively it can be installed via GitHub.

Usage

Setting a Hotkey

Configuration for setting hotkeys is done in the file ~/.config/sxhkd/sxhkdrc. A hotkey corresponds to typically two, sometimes more lines within this configuration file. The first line describes the keys that act as hotkeys and the second line describes the commands that are run on pressing the hotkey.

There are simple hotkeys using only one key (in this case the Launch Button).

XF86LaunchB
	xdotool selectwindow | xsel -bi

And some commands use modifier keys or multiple keys.

super + shift + equal
	sxiv -rt "$HOME/image"

When using similar commands it can be useful to map multiple hotkeys in one entry.

super + {_,shift + }{h,j,k,l}
	bspc node -{f,s} {west,south,north,east}

Reload Hotkey Daemon

To reload the configuration file SXHKD needs to be restartet It can be useful to set this on a hotkey.

super + shift + x
    pkill -usr1 -x sxhkd