X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=sway%2F.conkyrc;h=d6c35dd8029e016f3defa8ec13db17a31c29cc5c;hb=2b5c036e7b5ff45e2eed26dd7ce499c6eaf7bf2f;hp=cc7d85ed8afba4d6b5fd197ee46c661a8b984e8c;hpb=f06529db49446ab5f83f25e8e91ad20fcf306bcf;p=max%2Fdotfiles.git diff --git a/sway/.conkyrc b/sway/.conkyrc index cc7d85e..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,6 +59,17 @@ conky.text = [[ "\#ff0000" ${endif} }, + ${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"} ], ]];