wok-current diff conky/stuff/conky.conf @ rev 15528

conky: add wireless support
author Dominique Corbex <domcox@slitaz.org>
date Thu Nov 21 20:59:07 2013 +0100 (2013-11-21)
parents 3ed960c78a5f
children 9e0af4aa7665
line diff
     1.1 --- a/conky/stuff/conky.conf	Tue Jul 08 23:34:19 2008 +0200
     1.2 +++ b/conky/stuff/conky.conf	Thu Nov 21 20:59:07 2013 +0100
     1.3 @@ -1,61 +1,150 @@
     1.4  # /etc/conky/conky.conf: SliTaz Conky default configuration file.
     1.5  #
     1.6 +# For configuration settings, please see:
     1.7 +# http://conky.sourceforge.net/config_settings.html
     1.8 +#
     1.9 +# For values to display, please see:
    1.10 +# http://conky.sourceforge.net/variables.html
    1.11 +#
    1.12  
    1.13 -alignment top_right
    1.14 +# maintain spacing between certain elements (mono fonts)
    1.15 +use_spacer none
    1.16 +
    1.17 +# set to yes if you want conky to be forked in the background
    1.18  background no
    1.19 -border_width 1
    1.20 -cpu_avg_samples 2
    1.21  
    1.22 -default_color white
    1.23 -default_outline_color white
    1.24 -default_shade_color white
    1.25 +# Xft font when Xft is enabled
    1.26 +use_xft yes
    1.27 +xftfont Liberation Sans-9
    1.28  
    1.29 -draw_borders no
    1.30 -draw_graph_borders yes
    1.31 -draw_outline no
    1.32 +# Text alpha when using Xft
    1.33 +xftalpha 1
    1.34 +
    1.35 +# Update interval in seconds
    1.36 +update_interval 2.0
    1.37 +update_interval_on_battery 5.0
    1.38 +
    1.39 +# Create own window instead of using desktop
    1.40 +own_window yes
    1.41 +own_window_transparent no
    1.42 +own_window_type desktop
    1.43 +
    1.44 +# Use double buffering (reduces flicker, may not work for everyone)
    1.45 +double_buffer yes
    1.46 +
    1.47 +# Minimum size of text area
    1.48 +minimum_size 250 5
    1.49 +
    1.50 +# Draw shades?
    1.51  draw_shades no
    1.52  
    1.53 -gap_x 20
    1.54 -gap_y 20
    1.55 +# Draw outlines?
    1.56 +draw_outline no # amplifies text
    1.57  
    1.58 -minimum_size 5 5
    1.59 -net_avg_samples 2
    1.60 +# Draw borders around text
    1.61 +draw_borders no
    1.62 +
    1.63 +# Stippled borders?
    1.64 +stippled_borders 0
    1.65 +
    1.66 +# border margins
    1.67 +border_outer_margin 5
    1.68 +
    1.69 +# border width
    1.70 +border_width 0
    1.71 +
    1.72 +# Default colors and also border colors
    1.73 +default_color Dark Gray
    1.74 +default_shade_color Black
    1.75 +default_outline_color Dark Gray
    1.76 +color1 Dark Sea Green
    1.77 +color2 Dark Orange
    1.78 +
    1.79 +# Text alignment, other possible values are commented
    1.80 +alignment top_right
    1.81 +#alignment top_left
    1.82 +#alignment bottom_left
    1.83 +#alignment bottom_right
    1.84 +
    1.85 +# Gap between borders of screen and text
    1.86 +gap_x 24
    1.87 +gap_y 48
    1.88 +
    1.89 +# Subtract file system buffers from used memory?
    1.90  no_buffers yes
    1.91 -out_to_console no
    1.92  
    1.93 -own_window yes
    1.94 -own_window_class Conky
    1.95 -own_window_type desktop
    1.96 +# set to yes if you want all text to be in uppercase
    1.97 +uppercase no
    1.98  
    1.99 -stippled_borders 0
   1.100 -update_interval 3.0
   1.101 -uppercase no
   1.102 -use_spacer no
   1.103 +# default bars size
   1.104 +default_bar_size 70 6
   1.105 +default_gauge_size 70 6
   1.106 +default_graph_size 70 6
   1.107  
   1.108 -use_xft yes
   1.109 -xftfont DejaVu Sans Mono:size=9
   1.110 -own_window_transparent yes
   1.111 +# top name width
   1.112 +top_name_width 10
   1.113  
   1.114 +# how to check an interface for being up (up, link or address)
   1.115 +if_up_strictness link
   1.116 +
   1.117 +#
   1.118 +# stuff after 'TEXT' will be formatted on screen
   1.119 +#
   1.120  
   1.121  TEXT
   1.122 -$nodename - $sysname $kernel on $machine
   1.123 -$hr
   1.124 -${color grey}Uptime:$color $uptime
   1.125 -${color grey}Frequency (in MHz):$color $freq
   1.126 -${color grey}Frequency (in GHz):$color $freq_g
   1.127 -${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
   1.128 -${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
   1.129 -${color grey}CPU Usage:$color $cpu% ${cpubar 4}
   1.130 -${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
   1.131 -$hr
   1.132 -${color grey}File systems:
   1.133 - / $color${fs_free /}/${fs_size /} ${fs_bar 6 /}
   1.134 -${color grey}Networking:
   1.135 -Up:$color ${upspeed eth0} k/s${color grey} - Down:$color ${downspeed eth0} k/s
   1.136 -$hr
   1.137 -${color grey}Name                  PID   CPU%   MEM%
   1.138 -${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
   1.139 -${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
   1.140 -${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
   1.141 -${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
   1.142 +${color2}SYSTEM ${hr}
   1.143  
   1.144 +#$desktop_name
   1.145 +$color  Slitaz release $alignr$color1${pre_exec awk '{printf "%s" $0}' /etc/slitaz-release}
   1.146 +$color  Kernel $alignr$color1$sysname $kernel $machine
   1.147 +$color  Hostname $alignr$color1$nodename
   1.148 +$color  Uptime $alignr$color1$uptime
   1.149 +${if_existing /sys/class/power_supply/BAT0}$color  Battery $alignr$color1${battery BAT0} ${battery_bar BAT0}$endif\
   1.150 +${if_existing /sys/class/power_supply/BAT1}$color  Battery 2 $alignr$color1${battery BAT1} ${battery_bar BAT1}$endif
   1.151 +
   1.152 +${color2}RESOURCES ${hr}
   1.153 +
   1.154 +# CPU0 is the total usage for all CPUs
   1.155 +$color  CPU $alignr$color1${cpu CPU0}% ${cpubar CPU0}
   1.156 +#$color1  ${cpugraph CPU0 $color $color1}
   1.157 +${if_existing /boot}$color  RAM $alignr$color1$memmax $membar\
   1.158 +${else}$color  RAM $alignr$color1${fs_size /} ${fs_bar /}$endif
   1.159 +${if_mounted swap}$color  Swap $swapperc%$alignr$color1$swap/$swapmax
   1.160 +${else}$color  Swap $alignr$color1 Disabled$endif
   1.161 +$color  Disk / $alignr$color1${fs_size /} ${fs_bar /}
   1.162 +${if_mounted /home}$color  Disk /home $alignr$color1${fs_size /home} ${fs_bar /home}${endif}
   1.163 +
   1.164 +${color2}PROCESSING ${hr}
   1.165 +
   1.166 +$color  Name  ${goto 100}   PID ${goto 160} CPU%  $alignr MEM% $color1
   1.167 +  ${top name 1} ${goto 100} ${top pid 1} ${goto 160} ${top cpu 1} $alignr ${top mem 1}
   1.168 +  ${top name 2} ${goto 100} ${top pid 2} ${goto 160} ${top cpu 2} $alignr ${top mem 2}
   1.169 +  ${top name 3} ${goto 100} ${top pid 3} ${goto 160} ${top cpu 3} $alignr ${top mem 3}
   1.170 +  ${top name 4} ${goto 100} ${top pid 4} ${goto 160} ${top cpu 4} $alignr ${top mem 4}
   1.171 +
   1.172 +${color2}NETWORK ${hr}
   1.173 +
   1.174 +# eth0
   1.175 +${if_up eth0}$color2  eth0 $alignr ${addr eth0}
   1.176 +    $color Up $alignr$color1${upspeed eth0} ${upspeedgraph eth0 6,70}
   1.177 +    $color Total $alignr$color1 ${totalup eth0}
   1.178 +    $color Down $alignr$color1 ${downspeed eth0} ${downspeedgraph eth0 6,70}
   1.179 +    $color Total $alignr$color1 $color1${totaldown eth0}
   1.180 +$endif \
   1.181 +# eth1
   1.182 +${if_up eth1}$color2 eth1 $alignr ${addr eth1}
   1.183 +    $color Up $alignr$color1${upspeed eth1} ${upspeedgraph eth1 6,70}
   1.184 +    $color Total $alignr$color1 ${totalup eth1}
   1.185 +    $color Down $alignr$color1 ${downspeed eth1} ${downspeedgraph eth1 6,70}
   1.186 +    $color Total $alignr$color1 $color1${totaldown eth1}
   1.187 +$endif \
   1.188 +# wlan0
   1.189 +${if_up wlan0}$color2 wlan0 $alignr ${addr wlan0}
   1.190 +    $color Up $alignr$color1${upspeed wlan0} ${upspeedgraph wlan0 6,70}
   1.191 +    $color Total $alignr$color1 ${totalup wlan0}
   1.192 +    $color Down $alignr$color1 ${downspeed wlan0} ${downspeedgraph wlan0 6,70}
   1.193 +    $color Total $alignr$color1 $color1${totaldown wlan0}
   1.194 +    $color SSID $alignr$color1 ${wireless_essid wlan0}
   1.195 +    $color Signal $alignr$color1 ${wireless_link_qual wlan0}% ${wireless_link_bar wlan0}
   1.196 +    $color Bitrate $alignr$color1 ${wireless_bitrate wlan0}
   1.197 +$endif