From e92aaa10879368244a2cf17c0ab6a4272e47572e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 17 Jul 2019 18:27:12 +0200 Subject: [PATCH] [UPDATE][SHELL] Short touchpad toggle notification --- scripts/toggle_touchpad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/toggle_touchpad b/scripts/toggle_touchpad index cdf6b12..be6175e 100755 --- a/scripts/toggle_touchpad +++ b/scripts/toggle_touchpad @@ -6,8 +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)" + notify-send -t 500 -u low "Toggled touchpad (disabled)" else xinput --enable "$device" - notify-send -u low "Toggled touchpad (enabled)" + notify-send -t 500 -u low "Toggled touchpad (enabled)" fi