summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..ae47709
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,57 @@
+/* the rate at which the mouse moves in Hz
+ * does not change its speed */
+static const unsigned int move_rate = 50;
+
+/* the default speed of the mouse pointer
+ * in pixels per second */
+static const unsigned int default_speed = 500;
+
+/* changes the speed of the mouse pointer */
+static SpeedBinding speed_bindings[] = {
+ /* key speed */
+ { XK_3, 3000 },
+ { XK_2, 1500 },
+ { XK_1, 100 },
+};
+
+/* moves the mouse pointer
+ * you can also add any other direction (e.g. diagonals) */
+static MoveBinding move_bindings[] = {
+ /* key x y */
+ { XK_h, -1, 0 },
+ { XK_l, 1, 0 },
+ { XK_k, 0, -1 },
+ { XK_j, 0, 1 },
+};
+
+/* 1: left
+ * 2: middle
+ * 3: right */
+static ClickBinding click_bindings[] = {
+ /* key button */
+ { XK_space, 1 },
+ { XK_u, 1 },
+ { XK_o, 2 },
+ { XK_i, 3 },
+};
+
+/* scrolls up, down, left and right
+ * a higher value scrolls faster */
+static ScrollBinding scroll_bindings[] = {
+ /* key x y */
+ { XK_s, 0 , 25 },
+ { XK_w, 0 , -25 },
+ { XK_d, 25, 0 },
+ { XK_a, -25, 0 },
+};
+
+/* executes shell commands */
+static ShellBinding shell_bindings[] = {
+ /* key command */
+ { XK_0, "xdotool mousemove 0 0" },
+};
+
+/* exits on key release which allows click and exit with one key */
+static KeySym exit_keys[] = {
+ XK_Escape, XK_q, XK_space
+};