Minor bug fixes

Fixed toggler.sh spawning a billion clicks.sh instances depending on the amount of clicks.sh files in your home directory
This commit is contained in:
raul 2024-01-18 08:26:09 +01:00
parent 1d7321e442
commit 3b52fc7a55
1 changed files with 5 additions and 5 deletions

View File

@ -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