source: lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_admins @ 53

Last change on this file since 53 was 53, checked in by daduve, 4 years ago

New scripts for xenial

File size: 5.9 KB
Line 
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  ##################################################
10own_window yes
11own_window_class Conky
12own_window_type desktop
13own_window_transparent no
14own_window_colour black
15own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
16own_window_title LLIUREX_CONKY
17own_window_argb_visual yes
18own_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.
24double_buffer yes
25
26#minimum_size 600 500 ## width, height
27#maximum_width 600  ## width, usually a good idea to equal minimum width
28
29maximum_width 200
30alignment top_right
31gap_x 10
32gap_y 130
33
34cpu_avg_samples 5
35net_avg_samples 5
36diskio_avg_samples 5
37if_up_strictness address
38
39total_run_times 0
40update_interval 1
41####################################################  End Window Settings  ###
42###  Font Settings  ##########################################################
43# Use Xft (anti-aliased font and stuff)
44use_xft yes
45
46# Alpha of Xft font. Must be a value at or between 1 and 0 ###
47xftalpha 0.8
48# Force UTF8? requires XFT ###
49override_utf8_locale yes
50
51draw_shades no #### <<<<<<------------------To see it easier on light screens.
52#default_shade_color black
53
54draw_outline no #### <<<<<<---------------- Amplifies text if yes
55default_outline_color black
56
57uppercase 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
75default_color white
76
77#####################################################  End Color Settings  ###
78###  Borders Section  ########################################################
79draw_borders no
80# Stippled borders?
81stippled_borders 0
82# border margins
83border_inner_margin 5
84border_outer_margin 0
85# border width
86border_width 0
87# graph borders
88draw_graph_borders no
89#####################################################  End Borders Secton  ###
90###  Miscellaneous Section  ##################################################
91
92# Boolean value, if true, Conky will be forked to background when started.
93background 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
98use_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
102text_buffer_size 2048
103
104# Subtract (file system) buffers from used memory?
105no_buffers yes
106
107# Temperature unit (default is Celsius)
108temperature_unit fahrenheit
109
110# change GiB to G and MiB to M
111short_units yes
112
113# Like it says, ot pads the decimals on % values
114# doesn't seem to work since v1.7.1
115pad_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
124xftfont DejaVu Sans Mono:size=10
125###################
126####  TEMPLATES   ######
127###################
128
129template0 ${font AvantGardeLTMedium:bold:size=10}${color FF8C00}\1 ${hr 2}$color${font}${voffset 1}
130template1 USED \1: ${fs_used_perc \1}% ${alignr\ 80}${fs_bar\ \1}
131template2 ${\1 name \2}${alignr}${\1 \3 \2} %
132template3 ${if_up \1}${template0 \2}\nIP  ${alignr 9} ${addrs \1}\nDLS:${downspeed \1} kb/s\nULS:${upspeed \1} kb/s$endif
133template4 ${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
134template5  MIRROR \1:${exec cat /tmp/mirror_version.txt | grep 'VERSION \1' | cut -d ":" -f2 | xargs}
135template6  MIRROR DUAL:${exec cat /tmp/mirror_version.txt | grep 'VERSION 32' | cut -d ":" -f2 | xargs}
136
137
138TEXT
139${template0 DATOS}
140USUARIO: $LOGNAME
141EQUIPO: $nodename
142CLIENTE: ${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}
143ARQUITECTURA: ${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif}
144VERSION: ${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}
149Kernel $alignr $kernel
150Uptime $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}
159RAM Usage: $mem/$memmax
160$memperc% $membar
161SWAP 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
Note: See TracBrowser for help on using the repository browser.