1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-31 00:17:46 +02:00
dotfiles/.local/bin/i3cmds/toggletouchpad
2019-09-07 17:42:18 +02:00

5 lines
229 B
Bash
Executable File

#!/bin/sh
# 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."