From 3b52fc7a5591f6c8750028a9c52fe01ccd6c64cb Mon Sep 17 00:00:00 2001 From: raul Date: Thu, 18 Jan 2024 08:26:09 +0100 Subject: [PATCH] Minor bug fixes Fixed toggler.sh spawning a billion clicks.sh instances depending on the amount of clicks.sh files in your home directory --- toggler.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/toggler.sh b/toggler.sh index 523a4d4..2901437 100755 --- a/toggler.sh +++ b/toggler.sh @@ -13,11 +13,11 @@ else fi if pidof -x clicks.sh > /dev/null; then - #echo "clicks is active, deactivating" - notify-send "Clicks is active, deactivating" & + echo "Autoclicker is active, deactivating" + notify-send "Autoclicker is active, deactivating" & kill $(pidof -x clicks.sh) else - notify-send "Clicks isn't active, activating" & - #echo "clicks isn't active, activating" - $(find ~ -name 'clicks.sh') | head -n1 & + echo "Autoclicker isn't active, activating" + notify-send "Autoclicker isn't active, activating" & + $(find ~ -name 'clicks.sh' | head -n1) & fi