From 858bffa18ea7216b5eb581ae24eca40faaca784a Mon Sep 17 00:00:00 2001 From: The-Repo-Club Date: Sun, 30 Oct 2022 15:05:34 +0000 Subject: [PATCH] Toggle Conky --- localbin/.local/bin/toggle_conky | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/localbin/.local/bin/toggle_conky b/localbin/.local/bin/toggle_conky index 3615b2942..4c32765e7 100755 --- a/localbin/.local/bin/toggle_conky +++ b/localbin/.local/bin/toggle_conky @@ -12,7 +12,7 @@ #Created: # Fri 28 October 2022, 08:57:10 AM [GMT+1] #Modified: -# Sun 30 October 2022, 12:39:42 PM [GMT] +# Sun 30 October 2022, 02:50:09 PM [GMT] # #Description: # Toggle the conky on and off @@ -21,10 +21,10 @@ # conky # -checkRun=$(pgrep 'conky' | wc -l) +checkRun=$(pidof 'conky') if command -v conky &>/dev/null; then - if [[ ! $checkRun -ge "1" ]]; then + if [[ ! $checkRun ]]; then ( i3-msg "gaps right all set 5; gaps right all set 330" conky -c ~/.config/conky/left.conkyrc