Mon conky! EeePC

Publié le par Levi59

Mon conkyrc pour EeePC 1005HA
Il détecte les différents états de la batterie (absente, en charge, chargée, en décharge) et affiche si les lecteur de carte SD, le wifi ou la camera sont activé plus les fonctions habituelles...

http://img686.imageshack.us/img686/4599/2010081812821466451024x.png

 

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#own_window_type desktop

#borders
draw_borders no
#window.border_inner_margin 0

#shades
draw_shades yes

#position
gap_x 0
gap_y 25
alignment top_middle

#behaviour
update_interval 2

#colour
default_color 8f8f8f
#default_shade_color white
own_window_colour 262626

#font
use_xft yes
xftfont Comic Sans MS:pixelsize=12

#to prevent window from moving
use_spacer none
minimum_size 1024 0

#${image /home/akira/Images/gunnm110.jpg -p 1,1 -s 190x190}
TEXT
${image /home/akira/images/gally.jpg -p 940,7 -s 80x80}${font cityburn-©:pixelsize=38}${goto 50}${color white}${time %H}${font cityburn-©:pixelsize=30}${time :%M}${goto 170}${font cityburn-©:pixelsize=26}${time %a} ${time %e %b} ${time %G}${goto 350} ${font cityburn-©:pixelsize=30}Uptime: ${font cityburn-©:pixelsize=26}${uptime_short}${color}${color}${font}${goto 725}${if_up wlan0}| ESSID: ${color e0e0e0}${wireless_essid wlan0}${color}${endif}
${goto 50}${voffset 3}CPU: ${color e0e0e0}${font}${cpu cpu0}% ${color}${goto 180}| MEM: ${color e0e0e0}${font}${mem}/${memmax} ${color}${goto 350}${if_up wlan0}| Net: ${color e0e0e0}${font}${downspeed wlan0} ${color} ${totaldown wlan0} down${color}${goto 535}| Net: ${color e0e0e0}${upspeed wlan0} ${color} ${totalup wlan0} up${color}${goto 725}| Signal: ${if_match ${wireless_link_qual wlan0} >= 75}${color green}${else}${if_match ${wireless_link_qual wlan0} < 25}${color red}${else}${color orange}${endif}${endif}${wireless_link_qual wlan0}%${color}$endif
${goto 50}DSK /: ${color e0e0e0}${font}${fs_free /} ${color}free${goto 180}| DSK /home: ${color e0e0e0}${font}${fs_free /home}${color} free${goto 350}| ${if_existing /sys/class/power_supply/AC0/online 1}batterie: ${color orange}${battery_percent}%; ${battery_time} restante(s) avant epuisement. ${color}${else}${if_existing /sys/class/power_supply/BAT0/status Full}Batterie: ${color green}${battery_percent}%; ${battery_time} restante(s) avant la fin du chargement. (Sur secteur)${color}${else}${if_existing /sys/class/power_supply/BAT0/status Charging}Batterie: ${color green}${battery_percent}%; Batterie chargee. (Sur secteur)${color}${else}Batterie:${color red} Absente. (Sur secteur)${color}$endif$endif$endif
${goto 50}eeeTemp: ${color e0e0e0} ${exec expr `cat /sys/devices/virtual/thermal/thermal_zone0/temp` / 1000} C ${color}${goto 180}| eeeFanSpeed: ${color e0e0e0}${exec cat /sys/devices/platform/eeepc/hwmon/hwmon1/fan1_input}trs/min${color}${goto 350}${goto 615} Services actives: Wifi: ${color e0e0e0}${if_up wlan0}1${else}0$endif${color}${goto 800}| Cam: ${color e0e0e0}${exec cat /sys/devices/platform/eeepc/camera}${color}${goto 875}| SD: ${color e0e0e0}${exec cat /sys/devices/platform/eeepc/cardr}${color}

 

Publié dans Monitoring

Commenter cet article