1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
conky.config = {
background = true,
total_run_times = 0,
update_interval = 1,
own_window = true ,
own_window_type = 'override',
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
double_buffer = true,
draw_shades = true,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
alignment = 'top_left',
minimum_width = 300,
gap_x = 500,
gap_y = 60,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 1,
net_avg_samples = 1,
override_utf8_locale = true,
color1 = 'EAEAEA',
color2 = '00FF66',
color3 = '11EAEA',
color4 = 'EAEAEA',
color5 = 'FF3F3F',
color6 = '22FFFF',
color7 = 'FF8888',
text_buffer_size = 512,
pad_percents = 0,
short_units = true,
format_human_readable = true,
default_bar_height = 5,
default_bar_width = 200,
if_up_strictness = 'link',
font = 'Inconsolata:size=14',
use_xft = true,
}
conky.text = [[
${color5}Network:\
${if_up wlp3s0}
${color3}wlp3s0: ${color1}${addr wlp3s0}
${color3}essid: ${color1}${wireless_essid wlp3s0}
${color3}ext: ${color1}${execpi 360 ~/bin/checkip}
${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 ~/bin/checkip}
${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}OpenVPN:
${color3}sleepmap: ${color1}${execpi 30 systemctl is-active openvpn-client@sleepmap}
${color3}secure: ${color1}${execpi 30 systemctl is-active openvpn-client@secure}
${color5}Connections:
${execpi 5 lsof -ni| grep ESTABLISHED| grep -v 127.0.0.1| awk '{print "${color3}"$1,"${color1}"$9;}' }
]]
|