12 lines
217 B
Bash
12 lines
217 B
Bash
|
#!/bin/dash
|
||
|
|
||
|
device="SynPS/2 Synaptics TouchPad"
|
||
|
state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")
|
||
|
|
||
|
if [ "$state" = '1' ]
|
||
|
then
|
||
|
xinput disable "$device"
|
||
|
else
|
||
|
xinput enable "$device"
|
||
|
fi
|