diff options
Diffstat (limited to '.xbindkeysrc.scm')
-rw-r--r-- | .xbindkeysrc.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.xbindkeysrc.scm b/.xbindkeysrc.scm index d1c9479..5149054 100644 --- a/.xbindkeysrc.scm +++ b/.xbindkeysrc.scm @@ -138,6 +138,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" @@ -161,6 +167,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 |