diff --git a/bin/conky_toggle b/bin/conky_toggle index 0b7417d..72d9f01 100755 --- a/bin/conky_toggle +++ b/bin/conky_toggle @@ -2,7 +2,7 @@ SESSIONFILE=$HOME/.config/conky/conky-sessionfile while read -r line; do - THIS_CONKY=$(echo $line | awk '{print $3}') + THIS_CONKY=$(echo "${line##+([[:space:]])}" | awk '{print $3}') CONKYRC=${THIS_CONKY//\'/} if ! pgrep -f "${CONKYRC//\~/}"