From 938d3ec8282859bac8092adbaedf26bfd86a7727 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 24 Feb 2021 23:05:06 +0100 Subject: Add documentation to config.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 93d3dae..55a3e2f 100644 --- a/config.h +++ b/config.h @@ -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")}, }; -- cgit v1.2.3-70-g09d2