Permalink
Browse files

[xbindkeysrc] touchpad on/off toggling

Also includes the toggling script.

Note: uses the webcam switch.
  • Loading branch information...
1 parent b844641 commit 2fdf8f9f01fc37f742c796a0082f853eca346138 @raphael-proust committed Apr 30, 2012
Showing with 17 additions and 0 deletions.
  1. +13 −0 toggletouchpad.sh
  2. +4 −0 xbindkeysrc
View
13 toggletouchpad.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+property="TouchpadOff"
+
+if [ $(synclient -l |grep $property | awk '{print $3}') = "0" ]
+then
+ synclient $property=1
+else
+ if [ $(synclient -l |grep $property | awk '{print $3}') = "1" ]
+ then
+ synclient $property=0
+ fi
+fi
View
4 xbindkeysrc
@@ -34,3 +34,7 @@
"togglevga.sh"
m:0x0 + c:235
XF86Display
+#Touchpad toggling
+"toggletouchpad.sh"
+ m:0x0 + c:220
+ XF86WebCam

0 comments on commit 2fdf8f9

Please sign in to comment.