Download the AUR. Then, as a non-root user, run:AUR package from the
$ makepkg -i
while in the directory of the saved PKGBUILD. All the files will be retrieved, and the package will be built and installed.
sxhkd defaults to
$XDG_CONFIG_HOME/sxhkd/sxhkdrc for its configuration file. An alternate configuration file can be specified with the
Each line of the configuration file is interpreted as so:
- If it starts with
#, it is ignored.
- If it starts with one or more white space commands, it is read as a command.
- Otherwise, it is parsed as a hotkey: each key name is separated by spaces and/or
[MODIFIER + ]*[@|!]KEYSYM COMMAND
MODIFIER is one of the following names:
@ is added at the beginning of the keysym, the command will be run on key release events, otherwise on key press events.
! is added at the beginning of the keysym, the command will be run on motion notify events and must contain two integer conversion specifications which will be replaced by the x and y coordinates of the pointer relative to the root window referential (the only valid button keysyms for this type of hotkeys are:
KEYSYM names are those your will get from
Mouse hotkeys can be defined by using one of the following special keysym names:
The hotkey can contain a sequence of the form (
STRING_N), in which case, the command must also contain a sequence with N elements: the pairing of the two sequences generates N hotkeys.
In addition, the sequences can contain ranges of the form
A-Z where A and Z are alphanumeric characters.
What is actually executed is
SHELL -c COMMAND, which means you can use environment variables in
SHELL will be the content of the first defined environment variable in the following list:
If sxhkd receives a
SIGUSR1 signal, it will reload its configuration file.