-
Notifications
You must be signed in to change notification settings - Fork 1
/
conky.conf
194 lines (191 loc) · 14.5 KB
/
conky.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
conky.config = {
alignment = 'top_right',
background = true,
border_width = 1,
cpu_avg_samples = 2,
default_color = '#FFFFFF',
color0 = '#CD2928',
color1 = '#DDDD00',
default_outline_color = '#0077FF',
default_shade_color = '#0077FF',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
gap_x = 2,
gap_y = 35,
maximum_width = 280,
max_port_monitor_connections = 64,
max_user_text = 16384,
--#minimum_size = (330 10),
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
--#wm_class_name = 'Conky',
own_window_colour = 'black',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
own_window_type = 'normal',
own_window = false,
stippled_borders = 2,
update_interval = 0.5,
uppercase = false,
use_spacer = 'right',
use_xft = true,
xftalpha = 0.8,
font = 'Bitstream Vera Sans Mono:size=9',
-- lua_load = '~/.config/conky/conky.conf.lua',
-- lua_draw_hook_post = 'main',
};
conky.text = [[
# Heading
${font Bitstream Vera Sans:bold:size=9}$color0$alignc$nodename
$font$color0$alignc$sysname $kernel
${color0}Uptime:$color $uptime_short ${color0}${alignr}CPU clock: $color$freq MHz
${color0}Processes:$color $processes ${color0}Running:$color $running_processes
# RAM
${font Bitstream Vera Sans:bold:size=9}${color0}RAM: $font$color$memperc%$alignr$mem${color0}/${color}$memmax
${color0}$membar
#
# CPUs
${voffset -10}
${font Bitstream Vera Sans:bold:size=9}${color0}Core1:$font$color ${cpu cpu1}%${alignr}${exec sensors | gawk '/Core 0/ {print $3}'}
${color0}${cpugraph cpu1 40,280 6D7882 FFFFFF -t}
${font Bitstream Vera Sans:bold:size=9}${color0}Core2:$font$color ${cpu cpu2}%${alignr}${exec sensors | gawk '/Core 1/ {print $3}'}
${color0}${cpugraph cpu2 40,280 6D7882 FFFFFF -t}
${font Bitstream Vera Sans:bold:size=9}${color0}Core3:$font$color ${cpu cpu3}%${alignr}${exec sensors | gawk '/Core 2/ {print $3}'}
${color0}${cpugraph cpu3 40,280 6D7882 FFFFFF -t}
${font Bitstream Vera Sans:bold:size=9}${color0}Core4:$font$color ${cpu cpu4}%${alignr}${exec sensors | gawk '/Core 3/ {print $3}'}
${color0}${cpugraph cpu4 40,280 6D7882 FFFFFF -t}
# GPU - install conky-all for nvidia support
${font Bitstream Vera Sans:bold:size=9}${color0}GPU: $font$color${nvidia gpuutil}%${alignr}${color0} Clock: $color${nvidia gpufreqcur} MHz +${nvidia gputemp}°C
${color0}${nvidiagraph gpuutil 40,280 6D7882 FFFFFF -t}
# ${color0}GPU: $color${execi 1 nvidia-smi -a | gawk '/Gpu/ {print $3,$4}'}${alignc}$color0 Clock: $color${execi 1 nvidia-smi -a | gawk '/Graphics/ {print $3,$4; exit}'}${alignr}$color +${execi 1 nvidia-smi -a | gawk '/GPU Current/ {print $5}'}°C
#nvidia-settings -q=[gpu:0]/GPUCoreTemp |grep gpu:0 | cut -c62-63
#${color0}GPU: $color${execi 1 aticonfig --adapter=0 --od-getclock | grep 'GPU load' | cut -c32-34} ${alignr}$color +${execi 1 aticonfig --adapter=0 --od-gettemperature | grep 'Sensor 0' | cut -c37-40} C
#${color0}GPU:$color +${execi 1 aticonfig --adapter=0 --od-gettemperature | awk 'NR == 3 {printf $5}'} C
#
# Disks
${font Bitstream Vera Sans:bold:size=9}${color0}Disks & Filesystems:$font
${voffset 5}${color0}/dev/md6 $color${execi 60 < /proc/mdstat grep md6 -A 1 | awk '/_/ { print "[Warning!]" } /UU/ { print $NF }'} ${color0}/$alignr$color${fs_used /}${color0}/$color${fs_size /}
${color0}${fs_bar 5,280 /}
${color0}/home$alignr$color${fs_used /home}${color0}/$color${fs_size /home}
${color0}${fs_bar 5,280 /home}
${color0}Read: $color${diskio_read /dev/md6}$alignr${color0}Write: $color${diskio_write /dev/md6}
${color0}${diskiograph_read /dev/md6 40,135 6D7882 FFFFFF 0 -t}$alignr${color0}${diskiograph_write /dev/md6 40,135 6D7882 FFFFFF 0 -t}
${if_mounted /media/antoniotrkdz/a5e5a3cc-abd0-4554-a47e-4faf4dce615c}
#alternative to use a separate file for gawk
${voffset -15}${color0}/dev/md5 $color${execi 60 < /proc/mdstat grep md5 -A 1 | awk '/_/ { print "[Warning!]" } /UU/ { print $NF }'}$alignr$color${fs_used /media/antoniotrkdz/a5e5a3cc-abd0-4554-a47e-4faf4dce615c}${color0}/$color${fs_size /media/antoniotrkdz/a5e5a3cc-abd0-4554-a47e-4faf4dce615c}
#< /proc/mdstat grep md5 -A 1 | gawk '/_/ { state = "[Warning!]" ; exit } /UU/ { state = $NF } END { print state }'
# ${color0}/dev/md5 $color${execi 60 cat /proc/mdstat | grep md5 -A 1 | gawk -f /home/antoniotrkdz/dotfiles/raid_status_check.gawk --}$alignr$color${fs_used /media/antoniotrkdz/a5e5a3cc-abd0-4554-a47e-4faf4dce615c}${color0}/$color${fs_size /media/antoniotrkdz/a5e5a3cc-abd0-4554-a47e-4faf4dce615c}
${color0}${fs_bar 5,280 /media/antoniotrkdz/a5e5a3cc-abd0-4554-a47e-4faf4dce615c}
${color0}Read: $color${diskio_read /dev/md5}$alignr${color0}Write: $color${diskio_write /dev/md5}
${color0}${diskiograph_read /dev/md5 40,135 6D7882 FFFFFF 0 -t}$alignr${color0}${diskiograph_write /dev/md5 40,135 6D7882 FFFFFF 0 -t}
${endif}
${voffset -10}${font Bitstream Vera Sans:bold:size=9}${color0}Processes:$font
${color0}Name${alignr}PID CPU% MEM%
$color${top name 1}${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
$color${top name 2}${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
$color${top name 3}${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
$color${top name 4}${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
$color${top name 5}${alignr}${top pid 5} ${top cpu 5} ${top mem 5}
$color${top name 6}${alignr}${top pid 6} ${top cpu 6} ${top mem 6}
$color${top name 7}${alignr}${top pid 7} ${top cpu 7} ${top mem 7}
$color${top name 8}${alignr}${top pid 8} ${top cpu 8} ${top mem 8}
#${color0}Top:${alignr}CPU%
#$color${top name 1}$alignr${top cpu 1}
#$color${top name 2}$alignr${top cpu 2}
#$color${top name 3}$alignr${top cpu 3}
#$color${top name 4}$alignr${top cpu 4}
#$color${top name 5}$alignr${top cpu 5}
#${color0}${alignr}MEM
#$color${top_mem name 1}$alignr${top_mem mem_res 1}
#$color${top_mem name 2}$alignr${top_mem mem_res 2}
#$color${top_mem name 3}$alignr${top_mem mem_res 3}
#$color${top_mem name 4}$alignr${top_mem mem_res 4}
#$color${top_mem name 5}$alignr${top_mem mem_res 5}
${voffset -5}
# Network
${font Bitstream Vera Sans:bold:size=9}${color0}Network:$font
${color0}Down: $color${downspeed eth0}$alignr${color0}Up: $color${upspeed eth0}
${color0}${downspeedgraph eth0 40,135 6D7882 FFFFFF 0 -t}$alignr${color0}${upspeedgraph eth0 40,135 6D7882 FFFFFF 0 -t}
${color0}Total: $color${totaldown eth0}$alignr${color0}Total: $color${totalup eth0}
${voffset -10}
# ${color0}Iliad remaining data: $alignr$color${execi 600 bash scripts/iliad_residuo.sh}GB
# ${color0}Vodafone remaining data: $alignr$color${execi 600 ~/scripts/vodafone_scrape.py &}MB
${color0}Ping time to Google:${alignr} ${color}${exec ping -c 1 -W 1 www.google.it | grep -Eo "time=.+" | cut -c6-14}
$color0${if_up eth0}ETH $color${addr eth0}${endif}${if_up wlan0}wifi ${addr wlan0}${endif}$alignr${color0}open ports: $color${tcp_portmon 1 65535 count}
${color0}IP Address${alignr}DPORT
${color}${tcp_portmon 1 65535 rip 0}${alignr 1}${tcp_portmon 1 65535 rport 0}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 1}${alignr 1}${tcp_portmon 1 65535 rport 1}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 2}${alignr 1}${tcp_portmon 1 65535 rport 2}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 3}${alignr 1}${tcp_portmon 1 65535 rport 3}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 4}${alignr 1}${tcp_portmon 1 65535 rport 4}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 5}${alignr 1}${tcp_portmon 1 65535 rport 5}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 6}${alignr 1}${tcp_portmon 1 65535 rport 6}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 7}${alignr 1}${tcp_portmon 1 65535 rport 7}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 8}${alignr 1}${tcp_portmon 1 65535 rport 8}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 9}${alignr 1}${tcp_portmon 1 65535 rport 9}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 10}${alignr 1}${tcp_portmon 1 65535 rport 10}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 11}${alignr 1}${tcp_portmon 1 65535 rport 11}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 12}${alignr 1}${tcp_portmon 1 65535 rport 12}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 13}${alignr 1}${tcp_portmon 1 65535 rport 13}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 14}${alignr 1}${tcp_portmon 1 65535 rport 14}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 15}${alignr 1}${tcp_portmon 1 65535 rport 15}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 16}${alignr 1}${tcp_portmon 1 65535 rport 16}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 17}${alignr 1}${tcp_portmon 1 65535 rport 17}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 18}${alignr 1}${tcp_portmon 1 65535 rport 18}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 19}${alignr 1}${tcp_portmon 1 65535 rport 19}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 20}${alignr 1}${tcp_portmon 1 65535 rport 20}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 21}${alignr 1}${tcp_portmon 1 65535 rport 21}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 22}${alignr 1}${tcp_portmon 1 65535 rport 22}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 23}${alignr 1}${tcp_portmon 1 65535 rport 23}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 24}${alignr 1}${tcp_portmon 1 65535 rport 24}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 25}${alignr 1}${tcp_portmon 1 65535 rport 25}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 26}${alignr 1}${tcp_portmon 1 65535 rport 26}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 27}${alignr 1}${tcp_portmon 1 65535 rport 27}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 28}${alignr 1}${tcp_portmon 1 65535 rport 28}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 29}${alignr 1}${tcp_portmon 1 65535 rport 29}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 30}${alignr 1}${tcp_portmon 1 65535 rport 30}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 31}${alignr 1}${tcp_portmon 1 65535 rport 31}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 32}${alignr 1}${tcp_portmon 1 65535 rport 32}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 33}${alignr 1}${tcp_portmon 1 65535 rport 33}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 34}${alignr 1}${tcp_portmon 1 65535 rport 34}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 35}${alignr 1}${tcp_portmon 1 65535 rport 35}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 36}${alignr 1}${tcp_portmon 1 65535 rport 36}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 37}${alignr 1}${tcp_portmon 1 65535 rport 37}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 38}${alignr 1}${tcp_portmon 1 65535 rport 38}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 39}${alignr 1}${tcp_portmon 1 65535 rport 39}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 40}${alignr 1}${tcp_portmon 1 65535 rport 40}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 41}${alignr 1}${tcp_portmon 1 65535 rport 41}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 42}${alignr 1}${tcp_portmon 1 65535 rport 42}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 43}${alignr 1}${tcp_portmon 1 65535 rport 43}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 44}${alignr 1}${tcp_portmon 1 65535 rport 44}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 45}${alignr 1}${tcp_portmon 1 65535 rport 45}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 46}${alignr 1}${tcp_portmon 1 65535 rport 46}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 47}${alignr 1}${tcp_portmon 1 65535 rport 47}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 48}${alignr 1}${tcp_portmon 1 65535 rport 48}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 49}${alignr 1}${tcp_portmon 1 65535 rport 49}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 50}${alignr 1}${tcp_portmon 1 65535 rport 50}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 51}${alignr 1}${tcp_portmon 1 65535 rport 51}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 52}${alignr 1}${tcp_portmon 1 65535 rport 52}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 53}${alignr 1}${tcp_portmon 1 65535 rport 53}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 54}${alignr 1}${tcp_portmon 1 65535 rport 54}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 55}${alignr 1}${tcp_portmon 1 65535 rport 55}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 56}${alignr 1}${tcp_portmon 1 65535 rport 56}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 57}${alignr 1}${tcp_portmon 1 65535 rport 57}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 58}${alignr 1}${tcp_portmon 1 65535 rport 58}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 59}${alignr 1}${tcp_portmon 1 65535 rport 59}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 60}${alignr 1}${tcp_portmon 1 65535 rport 60}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 61}${alignr 1}${tcp_portmon 1 65535 rport 61}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 62}${alignr 1}${tcp_portmon 1 65535 rport 62}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 63}${alignr 1}${tcp_portmon 1 65535 rport 63}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 64}${alignr 1}${tcp_portmon 1 65535 rport 64}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 65}${alignr 1}${tcp_portmon 1 65535 rport 65}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 66}${alignr 1}${tcp_portmon 1 65535 rport 66}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 67}${alignr 1}${tcp_portmon 1 65535 rport 67}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 68}${alignr 1}${tcp_portmon 1 65535 rport 68}
${font Bitstream Vera Sans:size=9}${color}${tcp_portmon 1 65535 rip 69}${alignr 1}${tcp_portmon 1 65535 rport 69}
${font Bitstream Vera Sans:size=9}${color}____
]];