-
Notifications
You must be signed in to change notification settings - Fork 0
/
conky-osl.conf
105 lines (98 loc) · 4.76 KB
/
conky-osl.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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
--[[
Fixes for openSUSE Leap 15.2-15.5 and new GNOME desktop extension (e.g. Dash to Panel)
Tested with ZorinOS 17 and Ubuntu
$Header: /home/cvs/src/unix/conky-osl/conky-osl.conf,v 1.13 2024/08/28 09:23:30 ralph Exp $
]]
conky.config = {
alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
-- default_shade_color = 'blue', ---
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = yes,
extra_newline = false,
font = 'DejaVu Sans Mono:size=8',
--font = 'Fira Code:size=8',
gap_x = 20,
gap_y = 15,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_argb_visual = true,
own_window_class = 'Conky',
own_window_transparent = true,
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = yes,
update_interval = 2,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[
${color green}Info:$color ${scroll 32 Conky $conky_version - $sysname $nodename $kernel $machine wireless_essid desktop }
$hr
${color green}Uptime:$color $uptime ${alignr} ${color green}Freq:$color $freq MHz
${color green}RAM Usage:$color $mem/$memmax - $memperc% ${membar 6}
${color green}Swap Usage:$color $swap [$swapmax] $swapperc% ${swapbar 6}
${color green}CPU Usage:$color $cpu% ${cpubar 6}
${cpugraph 80,320 E0EF30 FF0008 s -t -l}
${color green}Processes:$color $processes ${color green}Running:$color $running_processes
$hr
${color green}/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${if_match "$battery" != ""}${color}Battery: ${color green}$battery_short ${color}Left: ${color}$battery_time ${battery_bar 6}$endif ${color grey}
$hr
${color green}Name TopCPU PID tCPU% tMEM%${color}
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}
${top name 9} ${top pid 9} ${top cpu 9} ${top mem 9}
${top name 10} ${top pid 10} ${top cpu 10} ${top mem 10}
${color green}Name TopMem PID tCPU% tMEM%${color}
${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${top_mem name 6} ${top_mem pid 6} ${top_mem cpu 6} ${top_mem mem 6}
${top_mem name 7} ${top_mem pid 7} ${top_mem cpu 7} ${top_mem mem 7}
${top_mem name 8} ${top_mem pid 8} ${top_mem cpu 8} ${top_mem mem 8}
${top_mem name 9} ${top_mem pid 9} ${top_mem cpu 9} ${top_mem mem 9}
${color green}Name TopIO PID tCPU% %IO/Sec${color}
${top_io name 1} ${top_io pid 1} ${top_io cpu 1} ${top_io io_perc 1}
${top_io name 2} ${top_io pid 2} ${top_io cpu 2} ${top_io io_perc 2}
${top_io name 3} ${top_io pid 3} ${top_io cpu 3} ${top_io io_perc 3}
${top_io name 4} ${top_io pid 4} ${top_io cpu 4} ${top_io io_perc 4}
${top_io name 5} ${top_io pid 5} ${top_io cpu 5} ${top_io io_perc 5}
${top_io name 6} ${top_io pid 6} ${top_io cpu 6} ${top_io io_perc 6}
${top_io name 7} ${top_io pid 7} ${top_io cpu 7} ${top_io io_perc 7}
${top_io name 8} ${top_io pid 8} ${top_io cpu 8} ${top_io io_perc 8}
${top_io name 9} ${top_io pid 9} ${top_io cpu 9} ${top_io io_perc 9}
$hr
${color green}eth0:TCP${color} ${tcp_portmon 1 65535 count} ${color green}${alignr}Public IP: ${color}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
TU:${totalup eth0}/TD:${totaldown eth0} ${alignr}U:${upspeed eth0} D:${downspeed eth0}
${downspeedgraph eth0 40,130 E0EF30 FF0008 s -t -l} ${offset 40} ${upspeedgraph eth0 40,130 E0EF30 FF0008 s -t -l}
${exec lsof -i | grep ESTABLISHED | awk '{split($9,s,">"); printf "%-10s %-4s %s\n", $1, $8, s[2]}'|cut -c1-42}
]]
-- Other possible commands to get net/TCP etc. status:
-- lsof -i (IPv4/6) -P (Portnames)
-- ${exec lsof -i -P | grep ESTABLISHED | awk '{split($9,s,">"); printf "%-10s %-4s %s\n", $1, $8, s[2]}'}
-- ${exec netstat -tulpen | awk 'NR>2 {split($9,s,"/"); printf "%-8s %-6s %s\n", s[2], $1, $4}'}