Changeset 53


Ignore:
Timestamp:
Jan 28, 2016, 9:41:47 AM (3 years ago)
Author:
daduve
Message:

New scripts for xenial

Location:
lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_admins

    r45 r53  
    11#==============================================================================
    2 # conkyrc_GVA
     2# conkyrc_admins
    33#
    4 # author : Daniel Duran Vecino daduve@gmail.com
    5 # version : v0.1
     4# author : Daniel Durán
     5# version : xenial
    66# license : Distributed under the terms of GNU GPL version 2 or later
    77#
    88#==============================================================================
    9 background yes
    10 own_window_colour grey
    11 default_color black
    12 use_xft yes
    13 xftalpha 0.6
     9###  Begin Window Settings  ##################################################
    1410own_window yes
    15 own_window_type override
     11own_window_class Conky
     12own_window_type desktop
    1613own_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
     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.
    2424double_buffer yes
    25 update_interval 1
     25
     26#minimum_size 600 500 ## width, height
     27#maximum_width 600  ## width, usually a good idea to equal minimum width
    2628
    2729maximum_width 200
     
    3032gap_y 130
    3133
    32 no_buffers yes
    33 uppercase no
    3434cpu_avg_samples 5
    3535net_avg_samples 5
     
    3737if_up_strictness address
    3838
    39 draw_shades no
    40 draw_outline no
     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  ########################################################
    4179draw_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
    4288draw_graph_borders no
    43 short_units true
    44 use_spacer none
    45 xftfont DejaVu Sans Mono:size=10
     89#####################################################  End Borders Secton  ###
     90###  Miscellaneous Section  ##################################################
    4691
    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}
     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 
    58122
    59123
     124xftfont DejaVu Sans Mono:size=10
     125###################
     126####  TEMPLATES   ######
     127###################
    60128
    61 template0 ${font Open Sans:Bold:size=10}${color blue}\1 ${hr 2}$color${font}${voffset 1}
     129template0 ${font AvantGardeLTMedium:bold:size=10}${color FF8C00}\1 ${hr 2}$color${font}${voffset 1}
    62130template1 USED \1: ${fs_used_perc \1}% ${alignr\ 80}${fs_bar\ \1}
    63131template2 ${\1 name \2}${alignr}${\1 \3 \2} %
     
    73141EQUIPO: $nodename
    74142CLIENTE: ${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}
     143ARQUITECTURA: ${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif}
    76144VERSION: ${exec cat /usr/share/lliurex-cdd/version}
    77145${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}
     
    97165#IP: ${addrs eth0}
    98166${template3 eth0 ETH0}${template3 wlan0 WLAN0}
    99 ${template3 eth1 ETH1}${template3 wlan1 WLAN1}
     167${template3 enp0s8 ETH1}${template3 wlan1 WLAN1}
    100168${template3 eth2 ETH2}${template3 wlan2 WLAN2}
    101169# HDD
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_admins_base

    r45 r53  
    11#==============================================================================
    2 # conkyrc_GVA
     2# conkyrc_admins
    33#
    4 # author : Daniel Duran Vecino daduve@gmail.com
    5 # version : v0.1
     4# author : Daniel Durán
     5# version : xenial
    66# license : Distributed under the terms of GNU GPL version 2 or later
    77#
    88#==============================================================================
    9 background yes
    10 own_window_colour grey
    11 default_color black
    12 use_xft yes
    13 xftalpha 0.6
     9###  Begin Window Settings  ##################################################
    1410own_window yes
    15 own_window_type override
     11own_window_class Conky
     12own_window_type desktop
    1613own_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
     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.
    2424double_buffer yes
    25 update_interval 1
     25
     26#minimum_size 600 500 ## width, height
     27#maximum_width 600  ## width, usually a good idea to equal minimum width
    2628
    2729maximum_width 200
     
    3032gap_y 130
    3133
    32 no_buffers yes
    33 uppercase no
    3434cpu_avg_samples 5
    3535net_avg_samples 5
     
    3737if_up_strictness address
    3838
    39 draw_shades no
    40 draw_outline no
     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  ########################################################
    4179draw_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
    4288draw_graph_borders no
    43 short_units true
    44 use_spacer none
    45 xftfont DejaVu Sans Mono:size=10
     89#####################################################  End Borders Secton  ###
     90###  Miscellaneous Section  ##################################################
    4691
    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}
     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 
    58122
    59123
    60 template0 ${font Open Sans:Bold:size=10}${color blue}\1 ${hr 2}$color${font}${voffset 1}
     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}
    61130template1 USED \1: ${fs_used_perc \1}% ${alignr\ 80}${fs_bar\ \1}
    62131template2 ${\1 name \2}${alignr}${\1 \3 \2} %
    63 template3 ${if_up \1}\n${template0 \2}\nIP  ${alignr 9} ${addrs \1}\nDLS:${downspeed \1} kb/s\nULS:${upspeed \1} kb/s$endif
    64 template5 ${if_up \1}\n${template0 \2}\nIP  ${alignr 9} ${addrs \1}\nDLS:${downspeed \1} kb/s$endif
    65 template6 ${if_up \1}\n${template0 \2}\nIP  ${alignr 9} ${addrs \1}\nULS:${upspeed \1} kb/s$endif
    66 template7 ${if_up \1}\n${template0 \2}\nIP  ${alignr 9} ${addrs \1}$endif
     132template3 ${if_up \1}${template0 \2}\nIP  ${alignr 9} ${addrs \1}\nDLS:${downspeed \1} kb/s\nULS:${upspeed \1} kb/s$endif
    67133template4 ${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
    68 template5  MIRROR \1: ${exec cat /tmp/mirror_version.txt | grep 'VERSION \1' | cut -d ":" -f2 | xargs}
     134template5  MIRROR \1:${exec cat /tmp/mirror_version.txt | grep 'VERSION \1' | cut -d ":" -f2 | xargs}
    69135template6  MIRROR DUAL:${exec cat /tmp/mirror_version.txt | grep 'VERSION 32' | cut -d ":" -f2 | xargs}
    70136
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_gui

    r45 r53  
    262262        if [[ $SELECTION == *EQUIPO* ]] ; then echo ''$MSG_HOSTNAME': $nodename' >> $CONKYRC_USED;fi
    263263        if [[ $SELECTION == *CLIENTE* ]] ; then echo ''$MSG_CLIENT': ${if_match ${exec grep "server" /tmp/conky-test.txt -c}!=0}${if_empty ${exec echo $DISPLAY | cut -d ":" -f 1}}'$MSG_SERVER_PANEL'${else}'$MSG_LIGERO_PANEL'${endif}${else}${if_match ${exec grep "client" /tmp/conky-test.txt -c}!=0}${if_empty ${exec cat /tmp/conky-test-fat.txt | grep true }}'$MSG_PESADO_PANEL'${else}'$MSG_SEMILIGERO_PANEL'${endif}${else}'$MSG_DESKTOP_PANEL'${endif}${endif}' >> $CONKYRC_USED;fi
    264         if [[ $SELECTION == *ARQUITECTURA* ]] ; then echo ''$MSG_ARCHITECTURE': ${exec uname -m > /tmp/architecture.txt}${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif}' >> $CONKYRC_USED;fi
     264        if [[ $SELECTION == *ARQUITECTURA* ]] ; then echo ''$MSG_ARCHITECTURE': ${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif}' >> $CONKYRC_USED;fi
    265265        if [[ $SELECTION == *VERSION* ]] ; then echo ''$MSG_VERSION': ${exec cat /usr/share/lliurex-cdd/version}' >> $CONKYRC_USED;fi
    266266        if [[ $SELECTION == *MIRROR_VERSION* ]] ; then echo '${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}' >> $CONKYRC_USED;fi
     
    309309        if [[ $SELECTION == *EQUIPO* ]] ; then echo ''$MSG_HOSTNAME': $nodename' >> $CONKYRC_USED;fi
    310310        if [[ $SELECTION == *CLIENTE* ]] ; then echo ''$MSG_CLIENT': ${if_match ${exec grep "server" /tmp/conky-test.txt -c}!=0}${if_empty ${exec echo $DISPLAY | cut -d ":" -f 1}}'$MSG_SERVER_PANEL'${else}'$MSG_LIGERO_PANEL'${endif}${else}${if_match ${exec grep "client" /tmp/conky-test.txt -c}!=0}${if_empty ${exec cat /tmp/conky-test-fat.txt | grep true }}'$MSG_PESADO_PANEL'${else}'$MSG_SEMILIGERO_PANEL'${endif}${else}'$MSG_DESKTOP_PANEL'${endif}${endif}' >> $CONKYRC_USED;fi
    311         if [[ $SELECTION == *ARQUITECTURA* ]] ; then echo ''$MSG_ARCHITECTURE': ${exec uname -m > /tmp/architecture.txt}${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif}' >> $CONKYRC_USED;fi
     311        if [[ $SELECTION == *ARQUITECTURA* ]] ; then echo ''$MSG_ARCHITECTURE': ${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif}' >> $CONKYRC_USED;fi
    312312        if [[ $SELECTION == *VERSION* ]] ; then echo ''$MSG_VERSION': ${exec cat /usr/share/lliurex-cdd/version}' >> $CONKYRC_USED;fi
    313313        if [[ $SELECTION == *IP_ADDRESS* ]] ;  then echo '$hr${template1 eth0 ETH0}${template1 eth1 ETH1}${template1 eth2 ETH2}${template1 eth3 ETH3}${template1 eth4 ETH4}'>> $CONKYRC_USED;fi
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_students

    r45 r53  
    33#
    44# author : Daniel Durán
    5 # version : v0.5
     5# version : xenial
    66# license : Distributed under the terms of GNU GPL version 2 or later
    77#
    88#==============================================================================
    9 #if_running clementine}# Use Xft?
     9###  Begin Window Settings  ##################################################
     10own_window yes
     11own_window_class Conky
     12own_window_type desktop
     13own_window_transparent yes
     14own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
     15own_window_title LLIUREX_CONKY
     16
     17# Use the Xdbe extension? (eliminates flicker)
     18# It is highly recommended to use own window with this one
     19# so double buffer won't be so big.
     20double_buffer yes
     21
     22#minimum_size 600 500 ## width, height
     23#maximum_width 600  ## width, usually a good idea to equal minimum width
     24
     25gap_x 30 ### left &right
     26gap_y 250 ### up & down
     27
     28alignment bottom_right
     29total_run_times 0
     30update_interval 1
     31####################################################  End Window Settings  ###
     32###  Font Settings  ##########################################################
     33# Use Xft (anti-aliased font and stuff)
    1034use_xft yes
    11 #xftfont Trebuchet MS:size=8
    12 #xftalpha 0.8
    13 text_buffer_size 2048
    14 background yes
    15 # Update interval in seconds
    16 #update_interval 1
     35
     36# Alpha of Xft font. Must be a value at or between 1 and 0 ###
    1737xftalpha 0.8
    18 #own_window_argb_visual yes
    19 # This is the number of times Conky will update before quitting.
    20 # Set to zero to run forever.
    21 total_run_times 0
     38# Force UTF8? requires XFT ###
     39override_utf8_locale yes
    2240
     41draw_shades no #### <<<<<<------------------To see it easier on light screens.
     42#default_shade_color black
    2343
    24 # Create own window instead of using desktop (required in nautilus)
    25 own_window yes
    26 own_window_transparent yes
    27 own_window_type override
    28 own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
     44draw_outline no #### <<<<<<---------------- Amplifies text if yes
     45default_outline_color black
    2946
     47uppercase no
     48######################################################  End Font Settings  ###
     49###  Color Settings  #########################################################
     50#default_shade_color gray
     51#default_outline_color black
    3052
    31 # Use double buffering (reduces flicker, may not work for everyone)
    32 double_buffer yes
    33 # Minimum size of text area
    34 #minimum_size 180 0
    35 # Draw shades?
    36 draw_shades no
    37 draw_graph_borders no
     53#default_color DCDCDC #220 220 220      Gainsboro
     54#color0 8FBC8F #143 188 143     DarkSeaGreen
     55#color1 778899 #119 136 153     LightSlateGray
     56#color2 FF8C00 #255 140   0     DarkOrange
     57#color3 7FFF00 #127 255   0     Chartreuse
     58#color4 FFA07A #255 160 122     LightSalmon
     59#color5 FFDEAD #255 222 173     NavajoWhite
     60#color6 00BFFF #  0 191 255     DeepSkyBlue
     61#color7 00FFFF #  0 255 255     Cyan
     62#color8 FFFF00 #255 255   0     Yellow
     63#color9 FF0000 #255   0   0     Red
    3864
    39 # Draw outlines?
    40 draw_outline no
    41 
    42 # Draw borders around text
     65default_color white
     66font AvantGardeLTMedium:bold:size=12
     67#####################################################  End Color Settings  ###
     68###  Borders Section  ########################################################
    4369draw_borders no
    44 
    4570# Stippled borders?
    4671stippled_borders 0
     72# border margins
     73border_inner_margin 5
     74border_outer_margin 0
     75# border width
     76border_width 0
     77# graph borders
     78draw_graph_borders no
     79#####################################################  End Borders Secton  ###
     80###  Miscellaneous Section  ##################################################
    4781
    48 # border margins
    49 #border_margin 5
     82# Boolean value, if true, Conky will be forked to background when started.
     83background no
    5084
    51 # border width
    52 border_width 1
     85# Adds spaces around certain objects to stop them from moving other things
     86# around, this only helps if you are using a mono font
     87# Options: right, left or none
     88use_spacer right
    5389
     90# Default and Minimum size is 256 - needs more for single commands that
     91# "call" a lot of text IE: bash scripts
     92text_buffer_size 2048
    5493
    55 # Default colors and also border colors
    56 #default_color white
    57 # own_window_colour white
    58 
    59 
    60 # Subtract file system buffers from used memory?
     94# Subtract (file system) buffers from used memory?
    6195no_buffers yes
    6296
     97# Temperature unit (default is Celsius)
     98temperature_unit fahrenheit
    6399
    64 # set to yes if you want all text to be in uppercase
    65 uppercase no
     100# change GiB to G and MiB to M
     101short_units yes
    66102
     103# Like it says, ot pads the decimals on % values
     104# doesn't seem to work since v1.7.1
     105pad_percents 2
    67106
    68 # number of cpu samples to average
    69 # set to 1 to disable averaging
    70 #cpu_avg_samples 2
    71 # number of net samples to average
    72 # set to 1 to disable averaging
    73 #net_avg_samples 2
    74 # Force UTF8? note that UTF8 support required XFT
    75 override_utf8_locale yes
     107#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
     108#  (default is 16384 bytes)
     109# max_user_text 16384
    76110
    77 
    78 # Add spaces to keep things from moving about? This only affects certain objects.
    79 use_spacer none
    80 
    81 
    82 gap_x 30
    83 gap_y 250
    84 #Change by DGTI
    85 #gap_y 160
    86 #maximum_width 200
    87 alignment bottom_right
    88 default_color white
     111##############################################  End Miscellaneous Section 
    89112
    90113
     
    94117$hr
    95118  USUARIO: $LOGNAME
    96   EQUIPO: $nodename
     119  EQUIPO: $nodename 
    97120  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}
    98121  VERSION: ${exec cat /usr/share/lliurex-cdd/version}
    99   ARQUITECTURA: ${exec uname -m > /tmp/architecture.txt}${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif}
    100 $hr${template1 eth0 ETH0}${template1 eth1 ETH1}${template1 eth2 ETH2}${template1 eth3 ETH3}${template1 eth4 ETH4}
     122  ARQUITECTURA: ${if_match ${exec grep "x86_64" /tmp/architecture.txt -c}!=0}64 Bits${else}32 Bits${endif}
     123$hr${template1 eth0 ETH0}${template1 enp0s8 ETH1}${template1 eth2 ETH2}${template1 eth3 ETH3}${template1 eth4 ETH4}
    101124$hr
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_students_base

    r45 r53  
    33#
    44# author : Daniel Durán
    5 # version : v0.5
     5# version : xenial
    66# license : Distributed under the terms of GNU GPL version 2 or later
    77#
    88#==============================================================================
    9 #if_running clementine}# Use Xft?
     9###  Begin Window Settings  ##################################################
     10own_window yes
     11own_window_class Conky
     12own_window_type desktop
     13own_window_transparent yes
     14own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
     15own_window_title LLIUREX_CONKY
     16
     17# Use the Xdbe extension? (eliminates flicker)
     18# It is highly recommended to use own window with this one
     19# so double buffer won't be so big.
     20double_buffer yes
     21
     22#minimum_size 600 500 ## width, height
     23#maximum_width 600  ## width, usually a good idea to equal minimum width
     24
     25gap_x 30 ### left &right
     26gap_y 250 ### up & down
     27
     28alignment bottom_right
     29total_run_times 0
     30update_interval 1
     31####################################################  End Window Settings  ###
     32###  Font Settings  ##########################################################
     33# Use Xft (anti-aliased font and stuff)
    1034use_xft yes
    11 #xftfont Trebuchet MS:size=8
    12 #xftalpha 0.8
    13 text_buffer_size 2048
    14 background yes
    15 # Update interval in seconds
    16 #update_interval 1
     35
     36# Alpha of Xft font. Must be a value at or between 1 and 0 ###
    1737xftalpha 0.8
    18 #own_window_argb_visual yes
    19 # This is the number of times Conky will update before quitting.
    20 # Set to zero to run forever.
    21 total_run_times 0
     38# Force UTF8? requires XFT ###
     39override_utf8_locale yes
    2240
     41draw_shades no #### <<<<<<------------------To see it easier on light screens.
     42#default_shade_color black
    2343
    24 # Create own window instead of using desktop (required in nautilus)
    25 own_window yes
    26 own_window_transparent yes
    27 own_window_type override
    28 own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
     44draw_outline no #### <<<<<<---------------- Amplifies text if yes
     45default_outline_color black
    2946
     47uppercase no
     48######################################################  End Font Settings  ###
     49###  Color Settings  #########################################################
     50#default_shade_color gray
     51#default_outline_color black
    3052
    31 # Use double buffering (reduces flicker, may not work for everyone)
    32 double_buffer yes
    33 # Minimum size of text area
    34 #minimum_size 180 0
    35 # Draw shades?
    36 draw_shades no
    37 draw_graph_borders no
     53#default_color DCDCDC #220 220 220      Gainsboro
     54#color0 8FBC8F #143 188 143     DarkSeaGreen
     55#color1 778899 #119 136 153     LightSlateGray
     56#color2 FF8C00 #255 140   0     DarkOrange
     57#color3 7FFF00 #127 255   0     Chartreuse
     58#color4 FFA07A #255 160 122     LightSalmon
     59#color5 FFDEAD #255 222 173     NavajoWhite
     60#color6 00BFFF #  0 191 255     DeepSkyBlue
     61#color7 00FFFF #  0 255 255     Cyan
     62#color8 FFFF00 #255 255   0     Yellow
     63#color9 FF0000 #255   0   0     Red
    3864
    39 # Draw outlines?
    40 draw_outline no
    41 
    42 # Draw borders around text
     65default_color white
     66font AvantGardeLTMedium:bold:size=12
     67#####################################################  End Color Settings  ###
     68###  Borders Section  ########################################################
    4369draw_borders no
    44 
    4570# Stippled borders?
    4671stippled_borders 0
     72# border margins
     73border_inner_margin 5
     74border_outer_margin 0
     75# border width
     76border_width 0
     77# graph borders
     78draw_graph_borders no
     79#####################################################  End Borders Secton  ###
     80###  Miscellaneous Section  ##################################################
    4781
    48 # border margins
    49 #border_margin 5
     82# Boolean value, if true, Conky will be forked to background when started.
     83background no
    5084
    51 # border width
    52 border_width 1
     85# Adds spaces around certain objects to stop them from moving other things
     86# around, this only helps if you are using a mono font
     87# Options: right, left or none
     88use_spacer right
    5389
     90# Default and Minimum size is 256 - needs more for single commands that
     91# "call" a lot of text IE: bash scripts
     92text_buffer_size 2048
    5493
    55 # Default colors and also border colors
    56 #default_color white
    57 # own_window_colour white
    58 
    59 
    60 # Subtract file system buffers from used memory?
     94# Subtract (file system) buffers from used memory?
    6195no_buffers yes
    6296
     97# Temperature unit (default is Celsius)
     98temperature_unit fahrenheit
    6399
    64 # set to yes if you want all text to be in uppercase
    65 uppercase no
     100# change GiB to G and MiB to M
     101short_units yes
    66102
     103# Like it says, ot pads the decimals on % values
     104# doesn't seem to work since v1.7.1
     105pad_percents 2
    67106
    68 # number of cpu samples to average
    69 # set to 1 to disable averaging
    70 #cpu_avg_samples 2
    71 # number of net samples to average
    72 # set to 1 to disable averaging
    73 #net_avg_samples 2
    74 # Force UTF8? note that UTF8 support required XFT
    75 override_utf8_locale yes
     107#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
     108#  (default is 16384 bytes)
     109# max_user_text 16384
    76110
    77 
    78 # Add spaces to keep things from moving about? This only affects certain objects.
    79 use_spacer none
    80 
    81 
    82 gap_x 30
    83 gap_y 250
    84 #Change by DGTI
    85 #gap_y 160
    86 #maximum_width 200
    87 alignment bottom_right
    88 default_color white
     111##############################################  End Miscellaneous Section 
    89112
    90113
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/lliurex-conky

    r45 r53  
    3535##Comprobación por máquina
    3636##Activa Actualmente
    37 
     37uname -m > architecture.txt
    3838lliurex-version > /tmp/conky-test.txt
    3939echo $LTSP_FATCLIENT > /tmp/conky-test-fat.txt
Note: See TracChangeset for help on using the changeset viewer.