summaryrefslogtreecommitdiffstats
path: root/.xbindkeysrc.scm
diff options
context:
space:
mode:
Diffstat (limited to '.xbindkeysrc.scm')
-rw-r--r--.xbindkeysrc.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/.xbindkeysrc.scm b/.xbindkeysrc.scm
index 82b90c8..5d6e258 100644
--- a/.xbindkeysrc.scm
+++ b/.xbindkeysrc.scm
@@ -140,6 +140,12 @@ the command."
(close-pipe dzen-pipe)
(set! dzen-pipe '())))
+(define (kill-mouse)
+ (run-command "synclient TouchpadOff=1; xte 'mousemove 1500 1500'"))
+
+(define (revive-mouse)
+ (run-command "synclient TouchpadOff=0"))
+
;;;_ Maps
(define (main-binding)
"First binding"
@@ -166,6 +172,8 @@ the command."
(xbindkey `(,modkey n) "herbstclient focus down")
(xbindkey `(,modkey p) "herbstclient focus up")
(xbindkey `(,modkey f) "herbstclient focus right")
+ (xbindkey-function '(XF86TouchpadOff) kill-mouse)
+ (xbindkey-function '(XF86TouchpadOn) revive-mouse)
(xbindkey-function `(,modkey g) reset-main-binding))
(create-map X-function-map