blob: bd647e50ae2971cb51716d7554a700842bc4e80b (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
enabled=$(xinput --list-props ETPS/2\ Elantech\ Touchpad | grep "Device Enabled" | awk '{print $4}')
if [ $enabled == 1 ]; then
xinput --disable ETPS/2\ Elantech\ Touchpad
else
xinput --enable ETPS/2\ Elantech\ Touchpad
fi
|