wok 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 | 781029802e4a |
children | 9e0af4aa7665 |
files | conky/receipt conky/stuff/conky.conf conky/stuff/conky.desktop |
line diff
1.1 --- a/conky/receipt Thu Nov 21 11:34:23 2013 +0000 1.2 +++ b/conky/receipt Thu Nov 21 20:59:07 2013 +0100 1.3 @@ -13,10 +13,10 @@ 1.4 1.5 DEPENDS="expat fontconfig freetype glib xorg-libX11 xorg-libXau \ 1.6 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ 1.7 -xorg-libXft xorg-libXrender zlib ncursesw" 1.8 +xorg-libXft xorg-libXrender zlib ncursesw wireless_tools" 1.9 BUILD_DEPENDS="$DEPENDS xorg-libXdamage-dev xorg-libXft-dev fontconfig-dev \ 1.10 expat-dev glib glib-dev pkg-config zlib-dev freetype-dev xorg-xextproto \ 1.11 -xorg-damageproto xorg-fixesproto ncursesw-dev" 1.12 +xorg-damageproto xorg-fixesproto ncursesw-dev wireless_tools-dev" 1.13 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 @@ -25,6 +25,7 @@ 1.17 --prefix=/usr \ 1.18 --sysconfdir=/etc \ 1.19 --mandir=/usr/share/man \ 1.20 + --enable-wlan \ 1.21 --disable-lua \ 1.22 $CONFIGURE_ARGS && 1.23 make && 1.24 @@ -34,7 +35,8 @@ 1.25 # Rules to gen a SliTaz package suitable for Tazpkg. 1.26 genpkg_rules() 1.27 { 1.28 - mkdir -p $fs/usr $fs/etc/conky 1.29 + mkdir -p $fs/usr $fs/etc/conky $fs/etc/xdg/autostart 1.30 cp -a $install/usr/bin $fs/usr 1.31 cp -a $stuff/conky.conf $fs/etc/conky 1.32 + cp -a $stuff/conky.desktop $fs/etc/xdg/autostart 1.33 }
2.1 --- a/conky/stuff/conky.conf Thu Nov 21 11:34:23 2013 +0000 2.2 +++ b/conky/stuff/conky.conf Thu Nov 21 20:59:07 2013 +0100 2.3 @@ -1,61 +1,150 @@ 2.4 # /etc/conky/conky.conf: SliTaz Conky default configuration file. 2.5 # 2.6 +# For configuration settings, please see: 2.7 +# http://conky.sourceforge.net/config_settings.html 2.8 +# 2.9 +# For values to display, please see: 2.10 +# http://conky.sourceforge.net/variables.html 2.11 +# 2.12 2.13 -alignment top_right 2.14 +# maintain spacing between certain elements (mono fonts) 2.15 +use_spacer none 2.16 + 2.17 +# set to yes if you want conky to be forked in the background 2.18 background no 2.19 -border_width 1 2.20 -cpu_avg_samples 2 2.21 2.22 -default_color white 2.23 -default_outline_color white 2.24 -default_shade_color white 2.25 +# Xft font when Xft is enabled 2.26 +use_xft yes 2.27 +xftfont Liberation Sans-9 2.28 2.29 -draw_borders no 2.30 -draw_graph_borders yes 2.31 -draw_outline no 2.32 +# Text alpha when using Xft 2.33 +xftalpha 1 2.34 + 2.35 +# Update interval in seconds 2.36 +update_interval 2.0 2.37 +update_interval_on_battery 5.0 2.38 + 2.39 +# Create own window instead of using desktop 2.40 +own_window yes 2.41 +own_window_transparent no 2.42 +own_window_type desktop 2.43 + 2.44 +# Use double buffering (reduces flicker, may not work for everyone) 2.45 +double_buffer yes 2.46 + 2.47 +# Minimum size of text area 2.48 +minimum_size 250 5 2.49 + 2.50 +# Draw shades? 2.51 draw_shades no 2.52 2.53 -gap_x 20 2.54 -gap_y 20 2.55 +# Draw outlines? 2.56 +draw_outline no # amplifies text 2.57 2.58 -minimum_size 5 5 2.59 -net_avg_samples 2 2.60 +# Draw borders around text 2.61 +draw_borders no 2.62 + 2.63 +# Stippled borders? 2.64 +stippled_borders 0 2.65 + 2.66 +# border margins 2.67 +border_outer_margin 5 2.68 + 2.69 +# border width 2.70 +border_width 0 2.71 + 2.72 +# Default colors and also border colors 2.73 +default_color Dark Gray 2.74 +default_shade_color Black 2.75 +default_outline_color Dark Gray 2.76 +color1 Dark Sea Green 2.77 +color2 Dark Orange 2.78 + 2.79 +# Text alignment, other possible values are commented 2.80 +alignment top_right 2.81 +#alignment top_left 2.82 +#alignment bottom_left 2.83 +#alignment bottom_right 2.84 + 2.85 +# Gap between borders of screen and text 2.86 +gap_x 24 2.87 +gap_y 48 2.88 + 2.89 +# Subtract file system buffers from used memory? 2.90 no_buffers yes 2.91 -out_to_console no 2.92 2.93 -own_window yes 2.94 -own_window_class Conky 2.95 -own_window_type desktop 2.96 +# set to yes if you want all text to be in uppercase 2.97 +uppercase no 2.98 2.99 -stippled_borders 0 2.100 -update_interval 3.0 2.101 -uppercase no 2.102 -use_spacer no 2.103 +# default bars size 2.104 +default_bar_size 70 6 2.105 +default_gauge_size 70 6 2.106 +default_graph_size 70 6 2.107 2.108 -use_xft yes 2.109 -xftfont DejaVu Sans Mono:size=9 2.110 -own_window_transparent yes 2.111 +# top name width 2.112 +top_name_width 10 2.113 2.114 +# how to check an interface for being up (up, link or address) 2.115 +if_up_strictness link 2.116 + 2.117 +# 2.118 +# stuff after 'TEXT' will be formatted on screen 2.119 +# 2.120 2.121 TEXT 2.122 -$nodename - $sysname $kernel on $machine 2.123 -$hr 2.124 -${color grey}Uptime:$color $uptime 2.125 -${color grey}Frequency (in MHz):$color $freq 2.126 -${color grey}Frequency (in GHz):$color $freq_g 2.127 -${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} 2.128 -${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} 2.129 -${color grey}CPU Usage:$color $cpu% ${cpubar 4} 2.130 -${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes 2.131 -$hr 2.132 -${color grey}File systems: 2.133 - / $color${fs_free /}/${fs_size /} ${fs_bar 6 /} 2.134 -${color grey}Networking: 2.135 -Up:$color ${upspeed eth0} k/s${color grey} - Down:$color ${downspeed eth0} k/s 2.136 -$hr 2.137 -${color grey}Name PID CPU% MEM% 2.138 -${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} 2.139 -${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} 2.140 -${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} 2.141 -${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} 2.142 +${color2}SYSTEM ${hr} 2.143 2.144 +#$desktop_name 2.145 +$color Slitaz release $alignr$color1${pre_exec awk '{printf "%s" $0}' /etc/slitaz-release} 2.146 +$color Kernel $alignr$color1$sysname $kernel $machine 2.147 +$color Hostname $alignr$color1$nodename 2.148 +$color Uptime $alignr$color1$uptime 2.149 +${if_existing /sys/class/power_supply/BAT0}$color Battery $alignr$color1${battery BAT0} ${battery_bar BAT0}$endif\ 2.150 +${if_existing /sys/class/power_supply/BAT1}$color Battery 2 $alignr$color1${battery BAT1} ${battery_bar BAT1}$endif 2.151 + 2.152 +${color2}RESOURCES ${hr} 2.153 + 2.154 +# CPU0 is the total usage for all CPUs 2.155 +$color CPU $alignr$color1${cpu CPU0}% ${cpubar CPU0} 2.156 +#$color1 ${cpugraph CPU0 $color $color1} 2.157 +${if_existing /boot}$color RAM $alignr$color1$memmax $membar\ 2.158 +${else}$color RAM $alignr$color1${fs_size /} ${fs_bar /}$endif 2.159 +${if_mounted swap}$color Swap $swapperc%$alignr$color1$swap/$swapmax 2.160 +${else}$color Swap $alignr$color1 Disabled$endif 2.161 +$color Disk / $alignr$color1${fs_size /} ${fs_bar /} 2.162 +${if_mounted /home}$color Disk /home $alignr$color1${fs_size /home} ${fs_bar /home}${endif} 2.163 + 2.164 +${color2}PROCESSING ${hr} 2.165 + 2.166 +$color Name ${goto 100} PID ${goto 160} CPU% $alignr MEM% $color1 2.167 + ${top name 1} ${goto 100} ${top pid 1} ${goto 160} ${top cpu 1} $alignr ${top mem 1} 2.168 + ${top name 2} ${goto 100} ${top pid 2} ${goto 160} ${top cpu 2} $alignr ${top mem 2} 2.169 + ${top name 3} ${goto 100} ${top pid 3} ${goto 160} ${top cpu 3} $alignr ${top mem 3} 2.170 + ${top name 4} ${goto 100} ${top pid 4} ${goto 160} ${top cpu 4} $alignr ${top mem 4} 2.171 + 2.172 +${color2}NETWORK ${hr} 2.173 + 2.174 +# eth0 2.175 +${if_up eth0}$color2 eth0 $alignr ${addr eth0} 2.176 + $color Up $alignr$color1${upspeed eth0} ${upspeedgraph eth0 6,70} 2.177 + $color Total $alignr$color1 ${totalup eth0} 2.178 + $color Down $alignr$color1 ${downspeed eth0} ${downspeedgraph eth0 6,70} 2.179 + $color Total $alignr$color1 $color1${totaldown eth0} 2.180 +$endif \ 2.181 +# eth1 2.182 +${if_up eth1}$color2 eth1 $alignr ${addr eth1} 2.183 + $color Up $alignr$color1${upspeed eth1} ${upspeedgraph eth1 6,70} 2.184 + $color Total $alignr$color1 ${totalup eth1} 2.185 + $color Down $alignr$color1 ${downspeed eth1} ${downspeedgraph eth1 6,70} 2.186 + $color Total $alignr$color1 $color1${totaldown eth1} 2.187 +$endif \ 2.188 +# wlan0 2.189 +${if_up wlan0}$color2 wlan0 $alignr ${addr wlan0} 2.190 + $color Up $alignr$color1${upspeed wlan0} ${upspeedgraph wlan0 6,70} 2.191 + $color Total $alignr$color1 ${totalup wlan0} 2.192 + $color Down $alignr$color1 ${downspeed wlan0} ${downspeedgraph wlan0 6,70} 2.193 + $color Total $alignr$color1 $color1${totaldown wlan0} 2.194 + $color SSID $alignr$color1 ${wireless_essid wlan0} 2.195 + $color Signal $alignr$color1 ${wireless_link_qual wlan0}% ${wireless_link_bar wlan0} 2.196 + $color Bitrate $alignr$color1 ${wireless_bitrate wlan0} 2.197 +$endif