1 | #============================================================================== |
---|
2 | # conkyrc_GVA |
---|
3 | # |
---|
4 | # author : Daniel Duran Vecino daduve@gmail.com |
---|
5 | # version : v0.1 |
---|
6 | # license : Distributed under the terms of GNU GPL version 2 or later |
---|
7 | # |
---|
8 | #============================================================================== |
---|
9 | background yes |
---|
10 | own_window_colour grey |
---|
11 | default_color black |
---|
12 | use_xft yes |
---|
13 | xftalpha 0.6 |
---|
14 | own_window yes |
---|
15 | own_window_type override |
---|
16 | own_window_transparent no |
---|
17 | own_window_class Conky |
---|
18 | #own_window_argb_visual yes |
---|
19 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |
---|
20 | # 0 = transparent, 255 = solid |
---|
21 | own_window_argb_value 160 |
---|
22 | no_buffers yes |
---|
23 | cpu_avg_samples 2 |
---|
24 | double_buffer yes |
---|
25 | update_interval 1 |
---|
26 | |
---|
27 | maximum_width 200 |
---|
28 | alignment top_right |
---|
29 | gap_x 10 |
---|
30 | gap_y 130 |
---|
31 | |
---|
32 | no_buffers yes |
---|
33 | uppercase no |
---|
34 | cpu_avg_samples 5 |
---|
35 | net_avg_samples 5 |
---|
36 | diskio_avg_samples 5 |
---|
37 | if_up_strictness address |
---|
38 | |
---|
39 | draw_shades no |
---|
40 | draw_outline no |
---|
41 | draw_borders no |
---|
42 | draw_graph_borders no |
---|
43 | short_units true |
---|
44 | use_spacer none |
---|
45 | xftfont DejaVu Sans Mono:size=10 |
---|
46 | |
---|
47 | ###ANTIGUA DEFINICION DE TOP |
---|
48 | # TOP |
---|
49 | #${template0 TOP} |
---|
50 | #$color${font Open Sans:bold:size=8}CPU$font |
---|
51 | #${template2 top 1 cpu} |
---|
52 | #${template2 top 2 cpu} |
---|
53 | #${template2 top 3 cpu}${voffset 5} |
---|
54 | #$color${font Open Sans:bold:size=8}RAM$font |
---|
55 | #${template2 top_mem 1 mem} |
---|
56 | #${template2 top_mem 2 mem} |
---|
57 | #${template2 top_mem 3 mem} |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | template0 ${font Open Sans:Bold:size=10}${color blue}\1 ${hr 2}$color${font}${voffset 1} |
---|
62 | template1 USED \1: ${fs_used_perc \1}% ${alignr\ 80}${fs_bar\ \1} |
---|
63 | template2 ${\1 name \2}${alignr}${\1 \3 \2} % |
---|
64 | template3 ${if_up \1}${template0 \2}\nIP ${alignr 9} ${addrs \1}\nDLS:${downspeed \1} kb/s\nULS:${upspeed \1} kb/s$endif |
---|
65 | 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 |
---|
66 | template5 MIRROR \1:${exec cat /tmp/mirror_version.txt | grep 'VERSION \1' | cut -d ":" -f2 | xargs} |
---|
67 | template6 MIRROR DUAL:${exec cat /tmp/mirror_version.txt | grep 'VERSION 32' | cut -d ":" -f2 | xargs} |
---|
68 | |
---|
69 | |
---|
70 | TEXT |
---|
71 | ${template0 DATOS} |
---|
72 | USUARIO: $LOGNAME |
---|
73 | EQUIPO: $nodename |
---|
74 | 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} |
---|
75 | ARQUITECTURA: ${exec uname -m > /tmp/architecture.txt}${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif} |
---|
76 | VERSION: ${exec cat /usr/share/lliurex-cdd/version} |
---|
77 | ${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} |
---|
78 | ${if_match ${fs_used_perc /}>=91}${execi 1000 /usr/share/lliurex-conky/hdd_full}${else}${endif} |
---|
79 | # SYS |
---|
80 | ${template0 SYSTEM} |
---|
81 | Kernel $alignr $kernel |
---|
82 | Uptime $alignr $uptime |
---|
83 | |
---|
84 | # CPU |
---|
85 | ${template0 CPU} |
---|
86 | ${exec cat /proc/cpuinfo | grep 'model name' | cut -c 14-42 | uniq } |
---|
87 | $cpu % ${cpubar} |
---|
88 | ${cpugraph} |
---|
89 | # RAM |
---|
90 | ${template0 RAM} |
---|
91 | RAM Usage: $mem/$memmax |
---|
92 | $memperc% $membar |
---|
93 | SWAP Usage:$swap/$swapmax |
---|
94 | $swapperc% ${swapbar} |
---|
95 | |
---|
96 | # NETWORK |
---|
97 | #IP: ${addrs eth0} |
---|
98 | ${template3 eth0 ETH0}${template3 wlan0 WLAN0} |
---|
99 | ${template3 eth1 ETH1}${template3 wlan1 WLAN1} |
---|
100 | ${template3 eth2 ETH2}${template3 wlan2 WLAN2} |
---|
101 | # HDD |
---|
102 | ${template0 HDD} |
---|
103 | ${template1 /} |
---|
104 | ${if_mounted /net${template1 /net}}$endif |
---|