My Conky setup. It's running on Ubuntu 18.04 lTS (Bionic Beaver) (cat /etc/*-release
).
Your main configuration file will be in your home directory (~/
) while supporting config files will be in ~/.conky/
. Scripts need to be executable with chmod +x script.sh
.
mkdir ~/.conky
touch ~/.conky/conkyrc
ln ~/.conky/conkyrc ~/.conkyrc
Conky can use external scripts or commands like so ${exec ~/.conky/script.sh}
or ${exec uname -r}
.
Use tools like grep
, cut
, and tr
to modify output as needed.
Like nmcli -f in-use,ssid dev wifi | grep '*' | tr -d ' ' | tr -d '*'
will find the current Wi-Fi network from nmcli
(command-line tool for controlling NetworkManager). grep '*'
finds the in-use network, tr -d ' '
removes white spaces from the output, and tr -d '*'
removes the asterisk from the outpt.