.xbindkeysrc.scm
This commit is contained in:
parent
883ec95f09
commit
fd2fd41a8e
1 changed files with 8 additions and 0 deletions
|
@ -138,6 +138,14 @@ the command."
|
||||||
(close-pipe dzen-pipe)
|
(close-pipe dzen-pipe)
|
||||||
(set! dzen-pipe '())))
|
(set! dzen-pipe '())))
|
||||||
|
|
||||||
|
(define (toggle-touchpad)
|
||||||
|
(let* ((pipe (open-input-pipe "synclient | grep TouchpadOff"))
|
||||||
|
(state (car (last-pair (string-split (read-line pipe) #\ )))))
|
||||||
|
(close-port pipe)
|
||||||
|
(if (equal? state "0")
|
||||||
|
(system "synclient TouchpadOff=1; xte 'mousemove 1500 1500'")
|
||||||
|
(system "synclient TouchpadOff=0"))))
|
||||||
|
|
||||||
;;;_ Maps
|
;;;_ Maps
|
||||||
(define (main-binding)
|
(define (main-binding)
|
||||||
"First binding"
|
"First binding"
|
||||||
|
|
Loading…
Reference in a new issue