It took many hours of googling, searching through conky documentation, and analyzing others' config files to get my conky sceen.
I figured out how to display my NAS drive under Disk Usage > Data, but only when it's mounted to my system, otherwise Data is the last entry. I was surprised I could use an if / endif statement in the TEXT section. Anyway, to my question. Does anyone know how I can format the Memory > /dev/zram0 and zram 1 lines so the bytes are in MB? The output is actually
, but I could have just as easily used "swapon -s" instead of the cat command. The challenge is that the outputs cannot be formatted the way I want.
I've been looking for some kind of string command or format command in conky, but so far no joy. I'd be happy to upload the config file if anyone is interested.
I figured out how to display my NAS drive under Disk Usage > Data, but only when it's mounted to my system, otherwise Data is the last entry. I was surprised I could use an if / endif statement in the TEXT section. Anyway, to my question. Does anyone know how I can format the Memory > /dev/zram0 and zram 1 lines so the bytes are in MB? The output is actually
Code:
${execi 6000 cat /proc/swaps |grep -m 1 'zram0' |awk '{print $4" / "$3}'}
I've been looking for some kind of string command or format command in conky, but so far no joy. I'd be happy to upload the config file if anyone is interested.
Comment