Files
dotfiles/.scripts/touchscreen.sh
T
2018-02-07 13:16:12 +01:00

12 lines
230 B
Bash
Executable File

#!/bin/sh
device="04F3200A:00 04F3:2373"
state=$(xinput --list-props "$device" | grep "Device Enabled" | sed -nr 's/.*:\t([0-9])/\1/p')
if [ "$state" = "0" ]; then
xinput --enable "$device"
else
xinput --disable "$device"
fi