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:
parent
1d7321e442
commit
3b52fc7a55
10
toggler.sh
10
toggler.sh
|
@ -13,11 +13,11 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if pidof -x clicks.sh > /dev/null; then
|
if pidof -x clicks.sh > /dev/null; then
|
||||||
#echo "clicks is active, deactivating"
|
echo "Autoclicker is active, deactivating"
|
||||||
notify-send "Clicks is active, deactivating" &
|
notify-send "Autoclicker is active, deactivating" &
|
||||||
kill $(pidof -x clicks.sh)
|
kill $(pidof -x clicks.sh)
|
||||||
else
|
else
|
||||||
notify-send "Clicks isn't active, activating" &
|
echo "Autoclicker isn't active, activating"
|
||||||
#echo "clicks isn't active, activating"
|
notify-send "Autoclicker isn't active, activating" &
|
||||||
$(find ~ -name 'clicks.sh') | head -n1 &
|
$(find ~ -name 'clicks.sh' | head -n1) &
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue