aboutsummaryrefslogtreecommitdiffstats
path: root/.config/conky
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-08-24 01:24:56 +0200
committerDavid Runge <dave@sleepmap.de>2016-08-24 01:24:56 +0200
commitd59bcc50b95480f5eba6b2faa3b948f3f2dbdfcb (patch)
tree8e5c62c805e66b30884fb9dff639f78831fb3d20 /.config/conky
parent2127dd4a2a98e49e896a98e4f5e956c5c237c57b (diff)
downloaddotfiles-d59bcc50b95480f5eba6b2faa3b948f3f2dbdfcb.tar.gz
dotfiles-d59bcc50b95480f5eba6b2faa3b948f3f2dbdfcb.tar.bz2
dotfiles-d59bcc50b95480f5eba6b2faa3b948f3f2dbdfcb.tar.xz
dotfiles-d59bcc50b95480f5eba6b2faa3b948f3f2dbdfcb.zip
.config/conky/network: Removing leading whitespace from all lines. Switching to lsof -ni for displaying established connections. Using systemctl for displaying the state of openvpn services. Moving display of processes to general.
Diffstat (limited to '.config/conky')
-rw-r--r--.config/conky/network53
1 files changed, 28 insertions, 25 deletions
diff --git a/.config/conky/network b/.config/conky/network
index bf0afb6..45ff834 100644
--- a/.config/conky/network
+++ b/.config/conky/network
@@ -5,7 +5,8 @@ own_window yes
own_window_class conky
own_window_title conky
own_window_type override
-own_window_transparent
+own_window_argb_visual true
+own_window_argb_value 0
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
@@ -13,10 +14,12 @@ draw_outline no
draw_borders no
draw_graph_borders no
alignment top_right
-gap_x 220
+gap_x 280
gap_y 40
-no_buffers no
+no_buffers yes
uppercase no
+cpu_avg_samples 1
+net_avg_samples 1
override_utf8_locale yes
color1 EAEAEA
color2 00FF66
@@ -35,33 +38,33 @@ xftfont Inconsolata:size=9
use_xft
TEXT
-${color5} Network:\
+${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}\
+${color3}wlp3s0: ${color1}${addr wlp3s0}
+${color3}essid: ${color1}${wireless_essid wlp3s0}
+${color3}ext: ${color1}${execpi 360 dig +short myip.opendns.com @resolver1.opendns.com}
+${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}\
+${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}
+${color5}OpenVPN:
+${color3}sleepmap: ${color1}${execpi 30 systemctl is-active openvpn@sleepmap}
+${color3}secure: ${color1}${execpi 30 systemctl is-active openvpn@secure}
+${color5}Connections:
+${color1}${execpi 1 lsof -ni| grep ESTABLISHED| grep -v 127.0.0.1| awk '{print $1,$9;}' }