72 lines
1.6 KiB
Lua
72 lines
1.6 KiB
Lua
-- 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}
|
|
],
|
|
]];
|