[UPDATE][SHELL] Notify on touchpad toggle

A low priority notification is displayed when enabling/disbling the
touchpad with i3's key-binding and/or te script.
This commit is contained in:
Bruno BELANYI 2019-07-17 18:05:28 +02:00
parent 65a8a2f4a3
commit 13e52c1670

View file

@ -6,6 +6,8 @@ state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")
if [ "$state" == "1" ];then
xinput --disable "$device"
notify-send -u low "Toggled touchpad (disabled)"
else
xinput --enable "$device"
notify-send -u low "Toggled touchpad (enabled)"
fi