X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=i3%2F.conkyrc;fp=i3%2F.conkyrc;h=cc7d85ed8afba4d6b5fd197ee46c661a8b984e8c;hb=03923e54a453891bdbb85cf70c55ede682260453;hp=0000000000000000000000000000000000000000;hpb=9edb1aed02653974862f0f7c28df3d9bbc965654;p=max%2Fdotfiles.git diff --git a/i3/.conkyrc b/i3/.conkyrc new file mode 100644 index 0000000..cc7d85e --- /dev/null +++ b/i3/.conkyrc @@ -0,0 +1,52 @@ +-- vim: ts=4 sw=4 noet ai cindent syntax=lua + +conky.config = { + out_to_x = false, + own_window = false, + out_to_console = true, + short_units = true, + update_interval = 0.5, + background = false, + max_text_width = 0, + total_run_times = 0, + short_units = true, + if_up_strictness = 'address', + use_spacer = 'left', + + cpu_avg_samples = 2, +}; + +conky.text = [[ +[ + ${if_running mutt} + {"full_text": "${new_mails mail_aber/Inbox} new mails", "color": "\#ffa500"}, + ${endif} + {"full_text": "Home ${fs_free /home} Free", "color": "\#ffffff"}, + {"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 "${addr tun0}"!="No Address"} + {"full_text": "VPN", "color": "\#00ff00"}, + ${endif} + { + "full_text": "RAM ${memperc}%", + "color": + ${if_match ${memperc}<90} + "\#ffffff" + ${else} + "\#ff0000" + ${endif} + }, + {"full_text": "${time}", "color": "\#ffffff"} +], +]]; +