Added toggle for conky

This commit is contained in:
The-Repo-Club 2022-10-30 12:49:05 +00:00
parent 881dc569a7
commit a7f858af3e
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F

View File

@ -12,7 +12,7 @@
#Created: #Created:
# Fri 28 October 2022, 08:57:10 AM [GMT+1] # Fri 28 October 2022, 08:57:10 AM [GMT+1]
#Modified: #Modified:
# Fri 28 October 2022, 04:17:57 PM [GMT+1] # Sun 30 October 2022, 12:39:42 PM [GMT]
# #
#Description: #Description:
# Toggle the conky on and off # Toggle the conky on and off
@ -27,13 +27,11 @@ if command -v conky &>/dev/null; then
if [[ ! $checkRun -ge "1" ]]; then if [[ ! $checkRun -ge "1" ]]; then
( (
i3-msg "gaps right all set 5; gaps right all set 330" i3-msg "gaps right all set 5; gaps right all set 330"
sleep 2s
conky -c ~/.config/conky/left.conkyrc conky -c ~/.config/conky/left.conkyrc
conky -c ~/.config/conky/right.conkyrc conky -c ~/.config/conky/right.conkyrc
) & ) &
else else
killall -q conky killall -q conky
sleep 2s
i3-msg "gaps inner all set 5; gaps outer all set 2" i3-msg "gaps inner all set 5; gaps outer all set 2"
fi fi
fi fi