dotfiles/i3/.config/i3/scripts/touchpad.sh

12 lines
217 B
Bash
Raw Normal View History

2018-10-02 21:41:43 +01:00
#!/bin/dash
device="SynPS/2 Synaptics TouchPad"
state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")
if [ "$state" = '1' ]
then
xinput disable "$device"
else
xinput enable "$device"
fi