Skip to content

Commit 439c100

Browse files
committed
network histograme
1 parent 928499f commit 439c100

File tree

4 files changed

+39
-28
lines changed

4 files changed

+39
-28
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.idea
22
.gitignore
3+
.speeds
34
Diana-Doe/
45
Pasha_HIlei_version/
56
gmail/credentials
67
gmail/trash/
8+

.speeds

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
sh: line 1: speedtest-cli: command not found

connections_graph.conf

+10-13
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,28 @@ conky.config = {
1616
own_window_argb_value=0,
1717
draw_graph_borders=false,
1818

19-
default_color = '#a5adff',
20-
alignment = 'top_left',
21-
gap_x = 60,
22-
gap_y = 60,
23-
minimum_width = 580, minimum_height = 150,
24-
maximum_width = 580,
19+
default_color = '#a5adff',
20+
alignment = 'top_left',
21+
gap_x = 60,
22+
gap_y = 60,
23+
minimum_width = 580, minimum_height = 150,
24+
maximum_width = 580,
2525
};
2626

2727
conky.text = [[
2828

2929
${goto 415}${color ea4335}DWN SPD
30-
${goto 415}${downspeedf wlp3s0} KiB${color}
31-
${voffset -40}${downspeedgraph wlp3s0 60,400 330106 ea4335 scale 975KiB -l -t}
30+
${goto 415}${downspeedf wlp0s20f3} KiB${color}
31+
${voffset -40}${downspeedgraph wlp0s20f3 60,400 330106 ea4335 scale 975KiB -l -t}
3232

3333

3434
${goto 415}${color ffffff}UPL SPD
35-
${goto 415}${upspeedf wlp3s0} KiB${color}
36-
${voffset -45}${upspeedgraph wlp3s0 60,400 14151f ffffff scale 100KiB -l -t}
35+
${goto 415}${upspeedf wlp0s20f3} KiB${color}
36+
${voffset -45}${upspeedgraph wlp0s20f3 60,400 14151f ffffff scale 100KiB -l -t}
3737
${texeci 72 speedtest-cli --simple > ~/blood-and-milk/.speeds 2>&1}
3838
${color #ea4335}${execpi 60 cat ~/blood-with-milk/.speeds | sed -e 's/Ping/PNG/' -e 's/Download/DWN/' -e 's/Upload/UPL/' -e 's/$/ /' | tr '\n' ' '}
3939
${color #ea4335}${execi 60 ip route}
4040

41-
42-
43-
4441
IP addres ${execi 60 curl ifconfig.me/ip | head -n 1}
4542
UPTIME: ${uptime}
4643
SSH ${tcp_portmon 22 22 rip 0}

cpu_histograme.conf

+27-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
conky.config = {
2-
cpu_avg_samples=1,
3-
net_avg_samples=2,
42
update_interval=1,
53
background=false,
64
text_buffer_size=2048,
@@ -13,20 +11,35 @@ conky.config = {
1311
own_window=true,
1412
own_window_type='override',
1513
own_window_class='Conky',
16-
own_window_transparent=true,
14+
own_window_argb_visual=true,
1715
own_window_hints='undecorated,below,sticky,skip_taskbar,skip_pager',
18-
own_window_colour='#000000',
19-
own_window_argb_visual=true,
2016
own_window_argb_value=0,
2117
draw_graph_borders=false,
22-
minimum_width = 600, minimum_height = 600,
23-
maximum_width = 600,
24-
alignment = 'bottom_left',
25-
gap_x = 665,
26-
gap_y = 201,
27-
default_color = '#fa4335',
28-
lua_load = '~/blood-and-milk/cpu_histograme.lua',
29-
lua_draw_hook_pre = 'conky_main',
18+
19+
default_color = '#a5adff',
20+
alignment = 'top_left',
21+
gap_x = 60,
22+
gap_y = 60,
23+
minimum_width = 580, minimum_height = 150,
24+
maximum_width = 580,
3025
};
3126

32-
conky.text = [[]];
27+
conky.text = [[
28+
29+
${goto 415}${color ea4335}DWN SPD
30+
${goto 415}${downspeedf wlo1} KiB${color}
31+
${voffset -40}${downspeedgraph wlo1 60,400 330106 ea4335 scale 975KiB -l -t}
32+
33+
34+
${goto 415}${color ffffff}UPL SPD
35+
${goto 415}${upspeedf wlo1} KiB${color}
36+
${voffset -45}${upspeedgraph wlo1 60,400 14151f ffffff scale 100KiB -l -t}
37+
${texeci 72 speedtest-cli --simple > ~/blood-and-milk/.speeds 2>&1}
38+
${color #ea4335}${execpi 60 cat ~/blood-with-milk/.speeds | sed -e 's/Ping/PNG/' -e 's/Download/DWN/' -e 's/Upload/UPL/' -e 's/$/ /' | tr '\n' ' '}
39+
${color #ea4335}${execi 60 ip route}
40+
41+
IP addres ${execi 60 curl ifconfig.me/ip | head -n 1}
42+
UPTIME: ${uptime}
43+
SSH ${tcp_portmon 22 22 rip 0}
44+
45+
]];

0 commit comments

Comments
 (0)