I like to keep my desktop uncluttered and I really like the way gkrellm docks to the side. I also use several conky instances and they take a considerable amount of desktop real estate so I wrote this little script to toggle them on and off.
#!/usr/bin/env bash
SESSIONFILE=$HOME/.config/conky/conky-sessionfile
while read -r line; do
THIS_CONKY=$(echo $line | awk -F"'" '{print $2}')
if ! pgrep -f $THIS_CONKY
then
conky -c $THIS_CONKY &
else
pkill -f "$THIS_CONKY"
fi
done < $SESSIONFILE
The conkys are those added using the Mabox control centre and are saved in the file referenced in the script.
Hi @piquet ,
Thanks for sharing
This script is a little gem.
Itβs a very nice addition to Mabox, and I think it should be there by default.
I would love to add it with your permission.
I just need to tweak jgconky-pipemenu a bit, and think about the keyboard shortcut.
How do you use this script?