blob: e4dc9594da404e0399b22a05e9cce8c6e7722d87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
touchpad_name='ETPS/2 Elantech Touchpad'
active="$(xinput list-props "$touchpad_name" | grep 'Device Enabled' | cut -f 3)"
if [ "$active" -eq 1 ]
then
xinput disable "$touchpad_name"
else
xinput enable "$touchpad_name"
fi
|