From 13e52c167053256255798aa0a46bc30663a1c8cd Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 17 Jul 2019 18:05:28 +0200 Subject: [PATCH] [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. --- scripts/toggle_touchpad | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/toggle_touchpad b/scripts/toggle_touchpad index 657f325..cdf6b12 100755 --- a/scripts/toggle_touchpad +++ b/scripts/toggle_touchpad @@ -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