From f3153d9a9fd85bfdb18f06d375d52d2f6cf2bad0 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 10 Apr 2019 10:50:54 +0100 Subject: [PATCH] Actually do the thing I said I did last time --- sway/.conkyrc | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/sway/.conkyrc b/sway/.conkyrc index 6f41e18..d6c35dd 100644 --- a/sway/.conkyrc +++ b/sway/.conkyrc @@ -25,15 +25,28 @@ conky.text = [[ {"full_text": "Root ${fs_free /root} Free", "color": "\#ffffff"}, {"full_text": "Disk r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"}, {"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"}, - { - "full_text": "d:${downspeed eno1} u:${upspeed eno1} ${addr eno1}", - "color": - ${if_match "${addr eno1}"=="No Address"} - "\#ff0000" - ${else} - "\#00ff00" - ${endif} - }, + ${if_match "${nodename_short}"=="magnesium"} + { + "full_text": "d:${downspeed eno1} u:${upspeed eno1} ${addr eno1}", + "color": + ${if_match "${addr eno1}"=="No Address"} + "\#ff0000" + ${else} + "\#00ff00" + ${endif} + }, + ${endif} + ${if_match "${nodename_short}"=="platinum"} + { + "full_text": "d:${downspeed wlp2s0} u:${upspeed wlp2s0} ${addr wlp2s0}", + "color": + ${if_match "${addr wlp2s0}"=="No Address"} + "\#ff0000" + ${else} + "\#00ff00" + ${endif} + }, + ${endif} ${if_match "${addr tun0}"!="No Address"} {"full_text": "VPN", "color": "\#00ff00"}, ${endif} @@ -46,8 +59,16 @@ conky.text = [[ "\#ff0000" ${endif} }, - ${if_match "${exec hostname}"=="platinum"} - {"full_text": "${acpitool}", "color": "\#ffffff"}, + ${if_match "${nodename_short}"=="platinum"} + { + "full_text": "BAT ${battery_short} ${battery_time}", + "color": + ${if_match ${battery_percent}<20} + "\#ff0000" + ${else} + "\#00ff00" + ${endif} + }, ${endif} {"full_text": "${time}", "color": "\#ffffff"} ], -- 2.45.2