aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-24 23:05:06 +0100
committerMattias Andrée <maandree@kth.se>2021-02-24 23:05:06 +0100
commit938d3ec8282859bac8092adbaedf26bfd86a7727 (patch)
treece19af118593b391135b9be7dc27f95940d39ee5
parentFix typo (diff)
downloadxkbdbind-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.h18
1 files 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")},
};