voidrice/.scripts/i3cmds/toggletouchpad

5 lines
229 B
Text
Raw Normal View History

2019-03-30 04:07:48 +00:00
#!/bin/sh
2018-07-29 16:16:54 +00:00
# Toggle touchpad. Requires xf86-input-synaptics.
2019-03-30 04:07:48 +00:00
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && echo "TouchPad reactivated." && exit
2018-07-29 16:16:54 +00:00
synclient TouchpadOff=1 && echo "TouchPad deactivated."