diff options
author | Mattias Andrée <maandree@kth.se> | 2021-02-24 23:05:06 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-02-24 23:05:06 +0100 |
commit | 938d3ec8282859bac8092adbaedf26bfd86a7727 (patch) | |
tree | ce19af118593b391135b9be7dc27f95940d39ee5 | |
parent | Fix typo (diff) | |
download | xkbdbind-938d3ec8282859bac8092adbaedf26bfd86a7727.tar.gz xkbdbind-938d3ec8282859bac8092adbaedf26bfd86a7727.tar.bz2 xkbdbind-938d3ec8282859bac8092adbaedf26bfd86a7727.tar.xz |
Add documentation to config.h1.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | config.h | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -1,6 +1,20 @@ #define MOD MOD_SUPER + +/* Column 1: Key to press (definitions are available in /usr/include/X11/keysymdef.h) + * + * Column 2: Modifies to combine with the keypress + * (OR of MOD_SHIFT, MOD_CTRL, MOD_ALT, MOD_HYPER, MOD_SUPER, MOD_ALTGR) + * + * Column 3: Non-zero if the command shall be spawn repeatedly if the key is held down + * + * Column 4: The command to spawn. Each argument shall be its own string, there is + * no shell syntax, and all arguments shall be wrapped in a CMD, e.g. + * CMD("printf", "%s\n", "Hello world!"), to print "Hello world!" (not + * a particularly useful example). + */ + static struct hotkey hotkeys[] = { - {XK_p, MOD, 0, CMD("dmenu_run", "-fn", "schumacher clean-8")}, - {XK_F4, MOD | MOD_SHIFT, 0, CMD("xkill")}, + {XK_p, MOD, 0, CMD("dmenu_run", "-fn", "schumacher clean-8")}, + {XK_F4, MOD | MOD_SHIFT, 0, CMD("xkill")}, }; |