1 | #============================================================================== |
---|
2 | # conkyrc_admins |
---|
3 | # |
---|
4 | # author : Daniel Durán |
---|
5 | # version : xenial |
---|
6 | # license : Distributed under the terms of GNU GPL version 2 or later |
---|
7 | # |
---|
8 | #============================================================================== |
---|
9 | ### Begin Window Settings ################################################## |
---|
10 | own_window yes |
---|
11 | own_window_class Conky |
---|
12 | own_window_type desktop |
---|
13 | own_window_transparent no |
---|
14 | own_window_colour black |
---|
15 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |
---|
16 | own_window_title LLIUREX_CONKY |
---|
17 | own_window_argb_visual yes |
---|
18 | own_window_argb_value 200 |
---|
19 | |
---|
20 | |
---|
21 | # Use the Xdbe extension? (eliminates flicker) |
---|
22 | # It is highly recommended to use own window with this one |
---|
23 | # so double buffer won't be so big. |
---|
24 | double_buffer yes |
---|
25 | |
---|
26 | #minimum_size 600 500 ## width, height |
---|
27 | #maximum_width 600 ## width, usually a good idea to equal minimum width |
---|
28 | |
---|
29 | maximum_width 200 |
---|
30 | alignment top_right |
---|
31 | gap_x 10 |
---|
32 | gap_y 130 |
---|
33 | |
---|
34 | cpu_avg_samples 5 |
---|
35 | net_avg_samples 5 |
---|
36 | diskio_avg_samples 5 |
---|
37 | if_up_strictness address |
---|
38 | |
---|
39 | total_run_times 0 |
---|
40 | update_interval 1 |
---|
41 | #################################################### End Window Settings ### |
---|
42 | ### Font Settings ########################################################## |
---|
43 | # Use Xft (anti-aliased font and stuff) |
---|
44 | use_xft yes |
---|
45 | |
---|
46 | # Alpha of Xft font. Must be a value at or between 1 and 0 ### |
---|
47 | xftalpha 0.8 |
---|
48 | # Force UTF8? requires XFT ### |
---|
49 | override_utf8_locale yes |
---|
50 | |
---|
51 | draw_shades no #### <<<<<<------------------To see it easier on light screens. |
---|
52 | #default_shade_color black |
---|
53 | |
---|
54 | draw_outline no #### <<<<<<---------------- Amplifies text if yes |
---|
55 | default_outline_color black |
---|
56 | |
---|
57 | uppercase no |
---|
58 | ###################################################### End Font Settings ### |
---|
59 | ### Color Settings ######################################################### |
---|
60 | #default_shade_color gray |
---|
61 | #default_outline_color black |
---|
62 | |
---|
63 | #default_color DCDCDC #220 220 220 Gainsboro |
---|
64 | #color0 8FBC8F #143 188 143 DarkSeaGreen |
---|
65 | #color1 778899 #119 136 153 LightSlateGray |
---|
66 | #color2 FF8C00 #255 140 0 DarkOrange |
---|
67 | #color3 7FFF00 #127 255 0 Chartreuse |
---|
68 | #color4 FFA07A #255 160 122 LightSalmon |
---|
69 | #color5 FFDEAD #255 222 173 NavajoWhite |
---|
70 | #color6 00BFFF # 0 191 255 DeepSkyBlue |
---|
71 | #color7 00FFFF # 0 255 255 Cyan |
---|
72 | #color8 FFFF00 #255 255 0 Yellow |
---|
73 | #color9 FF0000 #255 0 0 Red |
---|
74 | |
---|
75 | default_color white |
---|
76 | |
---|
77 | ##################################################### End Color Settings ### |
---|
78 | ### Borders Section ######################################################## |
---|
79 | draw_borders no |
---|
80 | # Stippled borders? |
---|
81 | stippled_borders 0 |
---|
82 | # border margins |
---|
83 | border_inner_margin 5 |
---|
84 | border_outer_margin 0 |
---|
85 | # border width |
---|
86 | border_width 0 |
---|
87 | # graph borders |
---|
88 | draw_graph_borders no |
---|
89 | ##################################################### End Borders Secton ### |
---|
90 | ### Miscellaneous Section ################################################## |
---|
91 | |
---|
92 | # Boolean value, if true, Conky will be forked to background when started. |
---|
93 | background no |
---|
94 | |
---|
95 | # Adds spaces around certain objects to stop them from moving other things |
---|
96 | # around, this only helps if you are using a mono font |
---|
97 | # Options: right, left or none |
---|
98 | use_spacer right |
---|
99 | |
---|
100 | # Default and Minimum size is 256 - needs more for single commands that |
---|
101 | # "call" a lot of text IE: bash scripts |
---|
102 | text_buffer_size 2048 |
---|
103 | |
---|
104 | # Subtract (file system) buffers from used memory? |
---|
105 | no_buffers yes |
---|
106 | |
---|
107 | # Temperature unit (default is Celsius) |
---|
108 | temperature_unit fahrenheit |
---|
109 | |
---|
110 | # change GiB to G and MiB to M |
---|
111 | short_units yes |
---|
112 | |
---|
113 | # Like it says, ot pads the decimals on % values |
---|
114 | # doesn't seem to work since v1.7.1 |
---|
115 | pad_percents 2 |
---|
116 | |
---|
117 | # Maximum size of user text buffer, i.e. layout below TEXT line in config file |
---|
118 | # (default is 16384 bytes) |
---|
119 | # max_user_text 16384 |
---|
120 | |
---|
121 | ############################################## End Miscellaneous Section |
---|
122 | |
---|
123 | |
---|
124 | xftfont DejaVu Sans Mono:size=10 |
---|
125 | ################### |
---|
126 | #### TEMPLATES ###### |
---|
127 | ################### |
---|
128 | |
---|
129 | template0 ${font AvantGardeLTMedium:bold:size=10}${color FF8C00}\1 ${hr 2}$color${font}${voffset 1} |
---|
130 | template1 USED \1: ${fs_used_perc \1}% ${alignr\ 80}${fs_bar\ \1} |
---|
131 | template2 ${\1 name \2}${alignr}${\1 \3 \2} % |
---|
132 | template3 ${if_up \1}${template0 \2}\nIP ${alignr 9} ${addrs \1}\nDLS:${downspeed \1} kb/s\nULS:${upspeed \1} kb/s$endif |
---|
133 | template4 ${if_up \1}${template0 \2}\ndown $alignr ${downspeed \1}/s\nup $alignr ${upspeed \1}/s\ntotal down$alignr${totaldown \1}\ntotal up $alignr${totalup \1}$endif |
---|
134 | template5 MIRROR \1:${exec cat /tmp/mirror_version.txt | grep 'VERSION \1' | cut -d ":" -f2 | xargs} |
---|
135 | template6 MIRROR DUAL:${exec cat /tmp/mirror_version.txt | grep 'VERSION 32' | cut -d ":" -f2 | xargs} |
---|
136 | |
---|
137 | |
---|
138 | TEXT |
---|
139 | ${template0 DATOS} |
---|
140 | USUARIO: $LOGNAME |
---|
141 | EQUIPO: $nodename |
---|
142 | CLIENTE: ${if_match ${exec grep "server" /tmp/conky-test.txt -c}!=0}${if_empty ${exec echo $DISPLAY | cut -d ":" -f 1}}Servidor${else}Ligero${endif}${else}${if_match ${exec grep "client" /tmp/conky-test.txt -c}!=0}${if_empty ${exec cat /tmp/conky-test-fat.txt | grep true }}Pesado${else}Semiligero${endif}${else}Desktop${endif}${endif} |
---|
143 | ARQUITECTURA: ${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif} |
---|
144 | VERSION: ${exec cat /usr/share/lliurex-cdd/version} |
---|
145 | ${if_match ${exec grep "VERSION 32" /tmp/mirror_version.txt -c}!=0}${if_match ${exec grep "VERSION 64" /tmp/mirror_version.txt -c}!=0}${template6}${else}${template5 32}${endif}${else}${if_match ${exec grep "VERSION 64" /tmp/mirror_version.txt -c}!=0}${template5 64}${endif}${endif} |
---|
146 | ${if_match ${fs_used_perc /}>=91}${execi 1000 /usr/share/lliurex-conky/hdd_full}${else}${endif} |
---|
147 | # SYS |
---|
148 | ${template0 SYSTEM} |
---|
149 | Kernel $alignr $kernel |
---|
150 | Uptime $alignr $uptime |
---|
151 | |
---|
152 | # CPU |
---|
153 | ${template0 CPU} |
---|
154 | ${exec cat /proc/cpuinfo | grep 'model name' | cut -c 14-42 | uniq } |
---|
155 | $cpu % ${cpubar} |
---|
156 | ${cpugraph} |
---|
157 | # RAM |
---|
158 | ${template0 RAM} |
---|
159 | RAM Usage: $mem/$memmax |
---|
160 | $memperc% $membar |
---|
161 | SWAP Usage:$swap/$swapmax |
---|
162 | $swapperc% ${swapbar} |
---|
163 | |
---|
164 | # NETWORK |
---|
165 | #IP: ${addrs eth0} |
---|
166 | ${template3 eth0 ETH0}${template3 wlan0 WLAN0} |
---|
167 | ${template3 enp0s8 ETH1}${template3 wlan1 WLAN1} |
---|
168 | ${template3 eth2 ETH2}${template3 wlan2 WLAN2} |
---|
169 | # HDD |
---|
170 | ${template0 HDD} |
---|
171 | ${template1 /} |
---|
172 | ${if_mounted /net${template1 /net}}$endif |
---|