12 lines
232 B
Plaintext
12 lines
232 B
Plaintext
|
#! /bin/sh
|
||
|
|
||
|
# Device id according to xinput list
|
||
|
device=11
|
||
|
state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")
|
||
|
|
||
|
if [ "$state" == "1" ];then
|
||
|
xinput --disable "$device"
|
||
|
else
|
||
|
xinput --enable "$device"
|
||
|
fi
|