[UPDATE][SHELL] Short touchpad toggle notification
This commit is contained in:
parent
d7e5bbdb32
commit
e92aaa1087
|
@ -6,8 +6,8 @@ state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")
|
||||||
|
|
||||||
if [ "$state" == "1" ];then
|
if [ "$state" == "1" ];then
|
||||||
xinput --disable "$device"
|
xinput --disable "$device"
|
||||||
notify-send -u low "Toggled touchpad (disabled)"
|
notify-send -t 500 -u low "Toggled touchpad (disabled)"
|
||||||
else
|
else
|
||||||
xinput --enable "$device"
|
xinput --enable "$device"
|
||||||
notify-send -u low "Toggled touchpad (enabled)"
|
notify-send -t 500 -u low "Toggled touchpad (enabled)"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue