c toggl
parent
0d17d89409
commit
1744639a9e
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
SESSIONFILE=$HOME/.config/conky/conky-sessionfile
|
SESSIONFILE=$HOME/.config/conky/conky-sessionfile
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
|
if [[ $line == *conky* ]]; then
|
||||||
THIS_CONKY=$(echo "${line##+([[:space:]])}" | awk '{print $3}')
|
THIS_CONKY=$(echo "${line##+([[:space:]])}" | awk '{print $3}')
|
||||||
CONKYRC=${THIS_CONKY//\'/}
|
CONKYRC=${THIS_CONKY//\'/}
|
||||||
|
|
||||||
|
@ -11,5 +12,6 @@ while read -r line; do
|
||||||
else
|
else
|
||||||
pkill -f "${CONKYRC//\~/}"
|
pkill -f "${CONKYRC//\~/}"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done < $SESSIONFILE
|
done < $SESSIONFILE
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue