diff options
Diffstat (limited to '.config/conky/network')
-rw-r--r-- | .config/conky/network | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/.config/conky/network b/.config/conky/network new file mode 100644 index 0000000..bf0afb6 --- /dev/null +++ b/.config/conky/network @@ -0,0 +1,67 @@ +background true +total_run_times 0 +update_interval 1 +own_window yes +own_window_class conky +own_window_title conky +own_window_type override +own_window_transparent +own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager +double_buffer yes +draw_shades yes +draw_outline no +draw_borders no +draw_graph_borders no +alignment top_right +gap_x 220 +gap_y 40 +no_buffers no +uppercase no +override_utf8_locale yes +color1 EAEAEA +color2 00FF66 +color3 11EAEA +color4 EAEAEA +color5 FF3F3F +color6 22FFFF +color7 FF8888 +text_buffer_size 512 +pad_percents 0 +short_units yes +format_human_readable yes +default_bar_size 115 5 +if_up_strictness link +xftfont Inconsolata:size=9 +use_xft + +TEXT +${color5} Network:\ +${if_up wlp3s0} +${color3} wlp3s0: ${color1}${addr wlp3s0} +${color3} essid: ${color1}${wireless_essid wlp3s0} +${color3} ext: ${color1}${execpi 360 wget -qO- http://ipecho.net/plain} +${color3} gway: ${color1}${exec route -n | grep wlp3s0 | grep UG | awk '{print $2}'} +${color3} dns: ${color1}${nameserver 0} +${color3} speed: ${color1}${exec iwconfig wlp3s0 | grep "Bit Rate" | cut -d"=" -f2 | cut -d" " -f1} Mb/s +${color3} frq: ${color1}${wireless_freq wlp3s0} +${color3} channel: ${color1}${wireless_channel wlp3s0} +${color3} quality: ${color1}${wireless_link_qual wlp3s0} +${color3} level: ${color1}${exec iwconfig wlp3s0 | grep "Signal" | cut -d"=" -f3 } +${color3} rate: ${color1}${downspeed wlp3s0} / ${upspeed wlp3s0}\ + +${endif}\ +${if_up enp0s25} +${color3} enp0s25: ${color1}${addr enp0s25} +${color3} external: ${color1}${execpi 360 wget -qO- http://ipecho.net/plain} +${color3} gateway: ${color1}${exec route -n | grep enp0s25 | grep UG |awk '{print $2}'} +${color3} dns: ${color1}${nameserver 0} +${color3} rate: ${color1}${downspeed enp0s25} / ${upspeed enp0s25}\ + +${endif}\ + +${color5} Connections: +${color1}${execpi 1 netstat --protocol=inet 2>/dev/null | grep -v localhost | grep ESTABLISHED | head -n 10 | sed -n "s/tcp.*\:.*\ \(.*\)\:\([^ ]*\)\ \(.*\)/ \$\{color3\}\2:\$\{color1\}\1/p" | sort | uniq } + +${color5} Processes: +${color1} ${execi 1 ps ax -o pcpu,%mem,comm --sort=-c | head -n 11 | tail -n 10} + |