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

12 lines
217 B
Bash
Executable File

#!/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