summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-05-27 21:16:56 -0400
committerCraig Jennings <c@cjennings.net>2024-05-27 21:16:56 -0400
commit692ead5795cb9b510c9fbe7f2261eeda07a97c73 (patch)
tree88dfda907b55a9f43b49175e701664cdd2ab0939
parentde83075136b3ac7d1060e8792b9cd6c05f503708 (diff)
added toggling touchpad to cmds, bound it to f9
-rw-r--r--config.def.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h
index c42a492..a697635 100644
--- a/config.def.h
+++ b/config.def.h
@@ -139,13 +139,14 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
#define TERMINAL_ENVVAR "TERMINAL"
#define BROWSER_ENVVAR "BROWSER"
#define EDITOR_ENVVAR "VISUAL"
-static const char *termcmd[] = { "st", NULL }; // default terminal; respects $TERMINAL env variable
-static const char *browsercmd[] = { "firefox", NULL }; // default browser; respects $BROWSER env variable
-static const char *editorcmd[] = { "emacs", NULL }; // default editor; respects $VISUAL env variable
-static const char *torbrowsercmd[] = { "tor-browser", NULL };
-static const char *bluetoothcmd[] = { "blueman-manager", NULL };
-static const char *screenshotcmd[] = { "screenshotmenu", NULL };
-static const char *exitcmd[] = { "dmenuexitmenu", NULL }; // script that provides exit options
+static const char *termcmd[] = { "st", NULL }; // default terminal; respects $TERMINAL env variable
+static const char *browsercmd[] = { "firefox", NULL }; // default browser; respects $BROWSER env variable
+static const char *editorcmd[] = { "emacs", NULL }; // default editor; respects $VISUAL env variable
+static const char *torbrowsercmd[] = { "tor-browser", NULL };
+static const char *bluetoothcmd[] = { "blueman-manager", NULL };
+static const char *trackpadcmd[] = { "toggle-touchpad", NULL }; // script enables/disables trackpad
+static const char *screenshotcmd[] = { "screenshotmenu", NULL };
+static const char *exitcmd[] = { "dmenuexitmenu", NULL }; // script providing exit options
/* volume control */
static const char *upvol[] = { "pactl", "set-sink-volume", "0", "+5%", NULL };
@@ -213,6 +214,7 @@ static Key keys[] = {
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = downbright } },
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = upbright } },
{ MODKEY|ShiftMask, XK_b, spawn, {.v = bluetoothcmd } },
+ { MODKEY , XK_F9, spawn, {.v = trackpadcmd } },
{ 0, XK_Print, spawn, {.v = screenshotcmd } },
{ MODKEY|ShiftMask, XK_q, spawn, {.v = exitcmd } },
{ MODKEY|ShiftMask, XK_BackSpace, quit, {0} },