-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconnections_list.conf
35 lines (31 loc) · 1.1 KB
/
connections_list.conf
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
conky.config = {
update_interval=1,
background=false,
own_window_transparent=true,
text_buffer_size=2048,
double_buffer=true,
no_buffers=true,
use_xft=true,
font='monospace:pixelsize=11',
draw_shades=false,
override_utf8_locale=true,
own_window=true,
own_window_type='override',
own_window_class='Conky',
own_window_argb_visual=false,
own_window_hints='undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_value=0,
default_color = '#ffffff',
alignment = 'top_left',
gap_x = 700,
gap_y = 70,
color1 = '#ea4335',
color2 = '#FFFFFF',
color3 = '#ea4335',
minimum_width = 100, minimum_height = 200,
maximum_width = 600,
};
conky.text = [[
${color3}State${color} Local Address:Port ${color3}Peer Address:Port${color}
${execpi 5 ss -t -a | grep -e "ESTAB" | tail -n 9 | awk '{print $1, $4, $5}' | column -t -o " " | sed -e 's/\(\([^ ]* *\)\{2\}\)\([^ ]*\)/\1${color3}\3${color}/' -e 's/\(\([^ ]* *\)\{0\}\)\([^ ]*\)/\1${color3}\3${color}/' -e 's/^/ /' -e '$s/^.../ /' -e '$s/$/ /'}
]];