-
Notifications
You must be signed in to change notification settings - Fork 0
/
conkyrc
372 lines (363 loc) · 19.2 KB
/
conkyrc
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
# addr (interface) IP address for an interface
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# alignr (num) Right-justify text, with space of N
# alignc Align text to centre
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# cpugraph (height),(width) (gradient colour 1) (gradient colour 2)
# CPU usage graph, with optional colours in hex,
# minus the #.
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# downspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Download speed graph, colours defined in
# hex, minus the #.
# exec shell command Executes a shell command and displays
# the output in conky. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execbar shell command Same as exec, except if the first value
# return is a value between 0-100, it
# will use that number for a bar.
# The size for the bar is currently fixed,
# but that may change in the future.
# execgraph shell command Same as execbar, but graphs values
# execi interval, shell command
# Same as exec but with specific interval.
# Interval can't be less than
# update_interval in configuration.
# font font Specify a different font. Only applies
# to one line.
# fs_bar (height), (fs)Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or
# temp/tempf (first in C, second in F)
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# if_running (process) if PROCESS is running, display
# everything if_running and the matching $endif
# if_existing (file) if FILE exists, display everything between
# if_existing and the matching $endif
# if_mounted (mountpoint) if MOUNTPOINT is mounted, display everything between
# if_mounted and the matching $endif
# else Text to show if any of the above are not true
# kernel Kernel version
# linkstatus (interface) Get the link status for wireless connections
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
#
# metar_ob_time
# metar_temp
# metar_tempf Temp in F
# metar_windchill
# metar_dew_point There are a bunch of these
# metar_rh and they are self-explanatory
# metar_windspeed
# metar_winddir
# metar_swinddir
# metar_cloud
# metar_u2d_time
#
# ml_upload_counter total session upload in mb
# ml_download_counter total session download in mb
# ml_nshared_files number of shared files
# ml_shared_counter total session shared in mb, buggy
# in some mldonkey versions
# ml_tcp_upload_rate tcp upload rate in kb/s
# ml_tcp_download_rate tcp download rate in kb/s
# ml_udp_upload_rate udp upload rate in kb/s
# ml_udp_download_rate udp download rate in kb/s
# ml_ndownloaded_files number of completed files
# ml_ndownloading_files number of downloading files
#
# mpd_artist Artist in current MPD song
# (must be enabled at compile)
# mpd_album Album in current MPD song
# mpd_bar (height) Bar of mpd's progress
# mpd_bitrate Bitrate of current song
# mpd_status Playing, stopped, et cetera.
# mpd_title Title of current MPD song
# mpd_vol MPD's volume
# mpd_elapsed Song's elapsed time
# mpd_length Song's length
# mpd_percent Percent of song's progress
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# conky displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# offset pixels Move text over by N pixels
# tail logfile, lines (interval)
# Displays last N lines of supplied text
# text file. If interval is not supplied,
# Conky assumes 2x Conky's interval.
# Max of 30 lines.
# Max of 30 lines can be displayed.
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before conky
# has started.
# top type, num This takes arguments in the form:
# top <name> <number>
# Basically, processes are ranked from
# highest to lowest in terms of cpu
# usage, which is what <num> represents.
# The types are: "name", "pid", "cpu", and
# "mem".
# There can be a max of 10 processes listed.
# top_mem type, num Same as top, except sorted by mem usage
# instead of cpu
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# upspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Upload speed graph, colours defined in
# hex, minus the #.
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit
# Basic Settings
#colors
#gruen
color1 366F35
color6 35BF5C
#color1 darkred
topcpucolor FFFFFF
color2 d9d7d6
color2 BEBEBE
color3
colorconnection FFFFFF
color3 grey
#dunkelgruen
color4 B22222
#color4 darkred
#offset
stdoffset 30
alignment tr
background yes
use_xft yes
xftfont sans:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
#own_window_type normal
own_window_hints below,sticky,skip_taskbar,skip_pager
own_window_color 4c4c4c
double_buffer yes
minimum_size 450 1
maximum_width 455
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color Black
default_shade_color 000000
default_outline_color d9d7d6
gap_x 5
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
# Fancy Conky display
TEXT
${font sans:size=30}${alignr }${color2}${time %H:%M:%S - %a %d %B}${voffset -15}
${font sans:bold:size=12}${if_match "$acpiacadapter"=="on-line"}${color1}${else}${color #B22222}${endif}BAT ${color2}${battery_percent all}% ${color3} | ${color1}UP ${color2}$uptime_short | ${scroll 30 3 ${execi 300 /home/maikel/.bin/weather.sh "EUR|GER|Tubingen"}}
${if_match "$acpiacadapter"=="off-line"}${color4}Left ${color2}${battery_time BAT0}${battery_time BAT1}${endif}
${color3}${hr}
## CPU
${font sans:bold:size=12}${voffset 5}${color1}CPU 1 ${color2}${cpu cpu1}% ${color3}| ${color2}${freq 1}MHz${color3} | ${color2}${cpubar cpu1}
${font sans:bold:size=12}${voffset 5}${color1}CPU 2 ${color2}${cpu cpu2}% ${color3}| ${color2}${freq 2}MHz${color3} | ${color2}${cpubar cpu2}
${font sans:bold:size=12}${voffset 5}${color1}CPU 3 ${color2}${cpu cpu3}% ${color3}| ${color2}${freq 3}MHz${color3} | ${color2}${cpubar cpu3}
${font sans:bold:size=12}${voffset 5}${color1}CPU 4 ${color2}${cpu cpu4}% ${color3}| ${color2}${freq 4}MHz${color3} | ${color2}${cpubar cpu4}
${voffset 5}${color2}Name${offset 120}PID CPU% MEM%
${font Monospace:size=11}${color white}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${topcpucolor}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${topcpucolor}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${topcpucolor}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${topcpucolor}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
# ${topcpucolor}${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
# ${topcpucolor}${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
# ${topcpucolor}${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}
# ${topcpucolor}${top name 9} ${top pid 9} ${top cpu 9} ${top mem 9}
#~ ${topcpucolor}${top name 10} ${top pid 10} ${top cpu 10} ${top mem 10}
#~ ${topcpucolor}${top name 11} ${top pid 11} ${top cpu 11} ${top mem 11}
#~ ${topcpucolor}${top name 12} ${top pid 12} ${top cpu 12} ${top mem 12}
${color2}${cpugraph cpu1 60,218 -t} ${cpugraph cpu2 60,218 -t}
${color2}${cpugraph cpu3 60,218 -t} ${cpugraph cpu4 60,218 -t}
${color3}${hr}
## RAM
${font sans:bold:size=12}${voffset 5}${color1}RAM ${offset 22}${color2}$mem ${membar}
${if_existing $swap}${color1}Swap${color2}${else}${color3}Swap${endif} ${offset 37}$swap $swapbar
${voffset 5}${color2}Name${offset 120}PID CPU% MEM%
${font Monospace:size=11}${color white}${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}
#~ ${top_mem name 10} ${top_mem pid 10} ${top_mem cpu 10} ${top_mem mem 10}
#~ ${top_mem name 11} ${top_mem pid 11} ${top_mem cpu 11} ${top_mem mem 11}
#~ ${top_mem name 12} ${top_mem pid 12} ${top_mem cpu 12} ${top_mem mem 12}
${color3}${hr}
## HDD
${font sans:bold:size=12}${voffset 5}${color1}Linux ${offset 14}${color2}${fs_used /} ${fs_bar /}
${color1}${voffset 5}HD IO: ${color2}${diskio}
${color2}${voffset 5}${diskiograph}
## Temperatur
${voffset 5}${color1} Free: ${color2}${fs_free /} |${color1} CPU ${color2}${acpitemp}°C ${color3}
#| ${color1}GPU ${color2}${if_match "${execi 60 sensors | grep temp1 -m 1 | cut -c26-29}"=="crit"}${execi 60 sensors | grep temp1 -m 2 | cut -c16-29 | grep -v crit}${else}${execi 60 sensors | grep temp1 -m 1 | cut -c16-22}${endif}
${color3}${hr }
#
#
##WLAN
${if_existing /proc/net/route wlp5s0}${voffset 5}${color1}Down: ${color2}${downspeed wlp5s0}/s ${alignc}${offset 50}${color1}Up: ${color2}${upspeed wlp5s0}/s${offset 100}
${color2}${downspeedgraph wlp5s0 25,130 -t}${offset 30}${upspeedgraph wlp5s0 25,130 -t}
${color2}${totaldown wlp5s0}${offset 180} ${color2}${totalup wlp5s0}
${color3}${hr }
## Connections
${voffset 5}${color4}Outbound Connection ${alignr} Remote Service/Port ${color white}
${font Monospace:size=11}${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
#~ ${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 rservice 6}
#~ ${tcp_portmon 32768 61000 rhost 7} ${alignr} ${tcp_portmon 32768 61000 rservice 7}
${font sans:bold:size=12}${voffset 5}${color4}Inbound Connection ${alignr} Local Service/Port${color white}
${font Monospace:size=11}${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
#~ ${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}
#~ ${tcp_portmon 1 32767 rhost 7} ${alignr} ${tcp_portmon 1 32767 lservice 7}
${color4}${font sans:bold:size=12}${offset 140}Global IP: ${alignr}${color2}${execi 60 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
${color4}${offset 140}Local IP: ${alignr}${color2}${addr wlp5s0}
${color4}${offset 140}ESSID: ${alignr}${color2}${wireless_essid wlp5s0}
${color4}${offset 140}Quality: ${color2}${wireless_link_bar wlp5s0}
${endif}
##WLAN
${if_existing /proc/net/route wlp4s0}${voffset 5}${color1}Down: ${color2}${downspeed wlp4s0}/s ${alignc}${offset 50}${color1}Up: ${color2}${upspeed wlp4s0}/s${offset 100}
${color2}${downspeedgraph wlp4s0 25,150 -t}${offset 50}${upspeedgraph wlp4s0 25,150 -t}
${color2}${totaldown wlp4s0}${offset 135} ${color2}${totalup wlp4s0}
${color3}${hr }
## Connections
${voffset 5}${color1}Outbount Connection ${alignr} Remote Service/Port ${color white}
${font Monospace:size=11}${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
# ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
#~ ${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 rservice 6}
#~ ${tcp_portmon 32768 61000 rhost 7} ${alignr} ${tcp_portmon 32768 61000 rservice 7}
${font sans:bold:size=12}${voffset 5}${color1}Inbound Connection ${alignr} Local Service/Port${color white}
${font Monospace:size=11}${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
# ${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
#~ ${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}
#~ ${tcp_portmon 1 32767 rhost 7} ${alignr} ${tcp_portmon 1 32767 lservice 7}
${color1}${font sans:bold:size=12}${offset 140}Global IP: ${alignr}${color2}${execi 60 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
${color1}${offset 140}Local IP: ${alignr}${color2}${addr wlp4s0}
${color1}${offset 140}ESSID: ${alignr}${color2}${wireless_essid wlp4s0}
${color1}${offset 140}Quality: ${color2}${wireless_link_bar wlp4s0}
${endif}
#
##LAN
#
${alignr}${if_existing /proc/net/route enp5s0}${voffset 5}${color1}Down: ${color2}${downspeed enp5s0}/s ${alignr} ${color1}Total: ${color2}${totaldown enp5s0}
${color2}${downspeedgraph enp5s0 25,300 -t}
${color1}Up: ${color2}${upspeed enp5s0}/s ${alignr} ${color1}Total: ${color2}${totalup enp5s0}
${color2}${upspeedgraph enp5s0 25,300 -t}
${offset 30}${color3}${hr }
## Connections
${voffset 5}${color1}Outbound Connection ${alignr} Remote Service/Port ${colorConnection}
${font Monospace:size=11}${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
# ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
#~ ${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 rservice 6}
#~ ${tcp_portmon 32768 61000 rhost 7} ${alignr} ${tcp_portmon 32768 61000 rservice 7}
${font sans:bold:size=12}${voffset 5}${color1}Inbound Connection ${alignr} Local Service/Port$color
${font Monospace:size=11}${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
# ${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
#~ ${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}
#~ ${tcp_portmon 1 32767 rhost 7} ${alignr} ${tcp_portmon 1 32767 lservice 7}
${color1}${font sans:bold:size=12}${offset 140}Global IP: ${alignr}${color2}${execi 60 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
${color1}${offset 140}LAN IP: ${alignr}${color2}${addr enp5s0}${endif}
##SHORTCUTS