2021-07-26 05:00:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
device=12
|
2021-07-30 16:16:05 +00:00
|
|
|
state=$(xinput list-props "ETPS/2 Elantech Touchpad" | grep "Device Enabled" | grep -o "[01]$")
|
2021-07-26 05:00:24 +00:00
|
|
|
|
|
|
|
if [ $state == '1' ];then
|
2021-07-30 16:16:05 +00:00
|
|
|
xinput --disable "ETPS/2 Elantech Touchpad"
|
2021-07-26 05:00:24 +00:00
|
|
|
else
|
2021-07-30 16:16:05 +00:00
|
|
|
xinput --enable "ETPS/2 Elantech Touchpad"
|
2021-07-26 05:00:24 +00:00
|
|
|
fi
|