16 lines
335 B
Plaintext
16 lines
335 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
SESSIONFILE=$HOME/.config/conky/conky-sessionfile
|
||
|
while read -r line; do
|
||
|
THIS_CONKY=$(echo $line | awk '{print $3}')
|
||
|
CONKYRC=${THIS_CONKY//\'/}
|
||
|
|
||
|
if ! pgrep -f "${CONKYRC//\~/}"
|
||
|
then
|
||
|
conky -c "${CONKYRC//\~/$HOME}" &
|
||
|
else
|
||
|
pkill -f "${CONKYRC//\~/}"
|
||
|
fi
|
||
|
done < $SESSIONFILE
|
||
|
exit 0
|