toggle touchpad binding and fixes
This commit is contained in:
parent
abdfebe38a
commit
580a6f6c31
2 changed files with 7 additions and 3 deletions
|
@ -387,9 +387,9 @@ bindsym XF86Reload restart
|
||||||
##bindsym XF86Launch8 exec
|
##bindsym XF86Launch8 exec
|
||||||
##bindsym XF86Launch9 exec
|
##bindsym XF86Launch9 exec
|
||||||
#bindsym XF86AudioMicMute exec $micmute
|
#bindsym XF86AudioMicMute exec $micmute
|
||||||
##bindsym XF86TouchpadToggle exec
|
bindsym XF86TouchpadToggle exec --no-startup-id toggletouchpad
|
||||||
bindsym XF86TouchpadOn exec --no-startup-id exec synclient TouchpadOff=0
|
bindsym XF86TouchpadOn exec --no-startup-id synclient TouchpadOff=0
|
||||||
bindsym XF86TouchpadOff exec --no-startup-id exec synclient TouchpadOff=1
|
bindsym XF86TouchpadOff exec --no-startup-id synclient TouchpadOff=1
|
||||||
bindsym XF86Suspend exec --no-startup-id ~/.config/i3/lock.sh
|
bindsym XF86Suspend exec --no-startup-id ~/.config/i3/lock.sh
|
||||||
bindsym XF86Close kill
|
bindsym XF86Close kill
|
||||||
bindsym XF86WebCam exec --no-startup-id camtoggle
|
bindsym XF86WebCam exec --no-startup-id camtoggle
|
||||||
|
|
4
.scripts/toggletouchpad
Executable file
4
.scripts/toggletouchpad
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Toggle touchpad. Requires xf86-input-synaptics.
|
||||||
|
(synclient | grep TouchpadOff.*1 && synclient TouchpadOff=0)>/dev/null && echo "TouchPad reactivated." && exit
|
||||||
|
synclient TouchpadOff=1 && echo "TouchPad deactivated."
|
Loading…
Reference in a new issue