summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-01-30 14:23:32 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-01-30 14:23:32 -0500
commit5ecde4487fe7b95366232c7b5f602fe5aad806b5 (patch)
tree9418d170629c19184115541340d4256d1fe71b18 /config.h
parent3a4ea9e283ad687673af45ffd2bef5effc76029b (diff)
touchpad on/off binds
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.h b/config.h
index 9cc04af..c6539fd 100644
--- a/config.h
+++ b/config.h
@@ -234,6 +234,10 @@ static Key keys[] = {
{ 0, XF86XK_Battery, spawn, SHCMD("notify-send \"Battery status\" \"$(batstat)\"") },
{ 0, XF86XK_Launch1, spawn, SHCMD("xset dpms force off") },
+ { 0, XF86XK_TouchpadToggle, spawn, SHCMD("(synclient | grep 'TouchpadOff.*1' && synclient TouchpadOff=0) || synclient TouchpadOff=1") },
+ { 0, XF86XK_TouchpadOff, spawn, SHCMD("synclient TouchpadOff=1") },
+ { 0, XF86XK_TouchpadOn, spawn, SHCMD("synclient TouchpadOff=0") },
+
/* { MODKEY, XK_space, setlayout, {0} }, */
/* { MODKEY, XK_comma, focusmon, {.i = -1 } }, */