From 319e92155d61eb62d07c76c0a78798e475aed7f5 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 30 Sep 2024 16:00:52 +0100 Subject: [PATCH] Separate conky configs --- dot_conkyrc-main | 54 ++++++++++++++++++++++++++++++++++++ dot_conkyrc-net | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 dot_conkyrc-main create mode 100644 dot_conkyrc-net diff --git a/dot_conkyrc-main b/dot_conkyrc-main new file mode 100644 index 0000000..673054d --- /dev/null +++ b/dot_conkyrc-main @@ -0,0 +1,54 @@ +-- 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_match "${exec cat ~/.local/share/pomodoro}"!="done"} + {"full_text": "Pomodoro: ${exec cat ~/.local/share/pomodoro}", "color": "\#ea0501"}, + ${endif} + + {"full_text": "Tea: ${execi 30 tail -n 1 ~/.local/share/teatimer.log}s", "color": "\#ffffff"}, + + {"full_text": "~ ${fs_free /home}", "color": "\#ffffff"}, + {"full_text": "/ ${fs_free /root}", "color": "\#ffffff"}, + {"full_text": "IO r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"}, + {"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"}, + { + "full_text": "RAM ${memperc}%", + "color": + ${if_match ${memperc}<90} + "\#ffffff" + ${else} + "\#ff0000" + ${endif} + }, + + { + "full_text": "BAT ${battery_short} ${battery_time}", + "color": + ${if_match ${battery_percent}<20} + "\#ff0000" + ${else} + "\#00ff00" + ${endif} + }, + + {"full_text": "${time %Y-%m-%d %H:%M}", "color": "\#ffffff"} +], +]]; + diff --git a/dot_conkyrc-net b/dot_conkyrc-net new file mode 100644 index 0000000..8c0e731 --- /dev/null +++ b/dot_conkyrc-net @@ -0,0 +1,72 @@ +-- 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_match "${addr enp6s0}"!="No Address"} +{ + "full_text": "enp6s0 d:${downspeed enp6s0} u:${upspeed enp6s0} ${addr enp6s0}", + "color": "\#00ff00" +}, + ${endif} + +${if_match "${addr enp4s0}"!="No Address"} +{ + "full_text": "enp4s0 d:${downspeed enp4s0} u:${upspeed enp4s0} ${addr enp4s0}", + "color": "\#00ff00" +}, + ${endif} + +${if_match "${addr enp0s13f0u1u4}"!="No Address"} +{ + "full_text": "enp0s13f0u1u4 d:${downspeed enp0s13f0u1u4} u:${upspeed enp0s13f0u1u4} ${addr enp0s13f0u1u4}", + "color": "\#00ff00" +}, + ${endif} + +${if_match "${addr eth0}"!="No Address"} +{ + "full_text": "eth0 d:${downspeed eth0} u:${upspeed eth0} ${addr eth0}", + "color": "\#00ff00" +}, + ${endif} + + +${if_match "${addr wlp2s0}"!="No Address"} +{ + "full_text": "WLAN: wlp2s0 q: ${wireless_link_bar wlp2s0} r: ${wireless_bitrate wlp2s0} d:${downspeed wlp2s0} u:${upspeed wlp2s0} ${addr wlp2s0} ${wireless_essid wlp2s0}", + "color": "\#00ff00" +}, + ${endif} + +${if_match "${addr wlo1}"!="No Address"} +{ + "full_text": "WLAN: wlo1 q: ${wireless_link_bar wlo1} r: ${wireless_bitrate wlo1} d:${downspeed wlo1} u:${upspeed wlo1} ${addr wlo1} ${wireless_essid wlo1}", + "color": "\#00ff00" +}, + ${endif} + +${if_match "${addr tun0}"!="No Address"} + {"full_text": "VPN", "color": "\#00ff00"}, +${endif} +], + ]];