blob: 6c1e51a68bcecce489eaf15eb2c02b1061683b65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# print if wacom tablet has touch on or off
bye() {
echo $1
exit
}
[ ! -e /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PTS-if01-event-mouse ] && bye
if evtest --query /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PTS-if01-event-mouse EV_SW SW_MUTE_DEVICE; then
bye "touch on"
else
bye "touch off"
fi
|