From 1744639a9e321a42e629cbd0c055ef1f8c9e9a0c Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Tue, 1 Jun 2021 17:36:15 +0200 Subject: [PATCH] c toggl --- bin/conky_toggle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/conky_toggle b/bin/conky_toggle index 72d9f01..7a74732 100755 --- a/bin/conky_toggle +++ b/bin/conky_toggle @@ -2,6 +2,7 @@ SESSIONFILE=$HOME/.config/conky/conky-sessionfile while read -r line; do + if [[ $line == *conky* ]]; then THIS_CONKY=$(echo "${line##+([[:space:]])}" | awk '{print $3}') CONKYRC=${THIS_CONKY//\'/} @@ -11,5 +12,6 @@ while read -r line; do else pkill -f "${CONKYRC//\~/}" fi + fi done < $SESSIONFILE exit 0