Un Conky anche per L’ EeePc 1005PE

Conky

Ok a me Conky piace moltissimo, e non solo perchè lo trovo molto utile, ma anche perchè mi rilassa tantissimo personalizzarlo, sì lo so i miei Conky non sono nulla di eccezionale, ma va’ bene così…

Ho utilizzato Conky 1.8.0.

Per installare questa nuova versione di Conky occorre aggiungere il repository, quindi da terminale :

Per Ubuntu 9.10 Karmic:

sudo add-apt-repository ppa:norsetto/ppa

Per Ubuntu 9.04 Karmic occorre aggiungere il repository nel file source.list, da terminale :

sudo gedit /etc/apt/sources.list

Aggiungiamo alla fine del file

deb http://ppa.launchpad.net/norsetto/ppa/ubuntu jaunty main
Salviamo e chiudiamo.
Aggiungiamo la chiave di identificazione digitando da terminale :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 95628707
Sempre da terminale:
sudo apt-get update
sudo apt-get install conky conky-all

Con Conky 1.8.0 ho dovuto modificare la parte riguardante la Rete( un grazie grandissimo a Doc del forum Eeepc.it) , se con la versioni precedente lo schema era questo:

${if_existing /proc/net/route wlan0}QUELLO CHE SI VUOLE $else
${if_existing /proc/net/route eth0} QUELLO CHE SI VUOLE $else
${if_existing /proc/net/route ppp0} QUELLO CHE SI VUOLE $else
QUELLO CHE SI VUOLE
$endif$endif$endif

Con Conky 1.8.0 lo schema deve essere così:

${if_up wlan0} QUELLO CHE SI VUOLE $else
${if_up eth0} QUELLO CHE SI VUOLE $else
${if_up ppp0} QUELLO CHE SI VUOLE $else
QUELLO CHE SI VUOLE
$endif$endif$endif

Ed aggiungere nella sezione generale, quella prima di TEXT

if_up_strictness address

Bene detto questo ecco i miei file:

.conkyrc:

# Use Xft?
use_xft yes
xftfont Purisa:size=9
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
	own_window yes
	own_window_transparent yes
	own_window_type override
	#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 220 0
maximum_width 220

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1
draw_graph_borders no
# Default colors and also border colors
default_color f9f8fe
#default_shade_color black
#default_outline_color white
own_window_colour 333333

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 4
gap_y 8

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

if_up_strictness address

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none
short_units yes
pad_percents 2
imlib_cache_size 0

TEXT
${image /home/luna/Scripts/conky/4.png -p -10,0 -s 255x800}${color D0D2D8}
${voffset 6}${font Comic Strip MN:pixelsize=18}${alignc}${time %A}
${voffset 4}${font Comic Strip MN:pixelsize=14}${alignc}${time %d %B %Y}
${voffset 8}${font Comic Strip MN:pixelsize=40}${alignc}${time %H:%M}${font}
${alignc}...............................
${voffset 10}${cpugraph cpu0 20,220 000033 091B94 -t}
${voffset -20}CPU: ${cpu cpu}% ${alignr} Temp: ${acpitemp}°C
Freq: $freq MHz${alignr} ${execi 10 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor}
Fan speed: ${alignr}${exec cat /sys/class/hwmon/hwmon1/fan1_input} rpm
RAM: $memperc% ${alignr}${membar 6,100}
SWAP: $swapperc${alignr}${swapbar 6,100}
Uptime: ${alignr}${uptime}
${alignc}...............................
${if_up wlan0}$alignc${wireless_essid wlan0}   ${wireless_link_qual wlan0}%
${downspeedgraph wlan0 20,220 110000 550000 -t}
${voffset -20}${alignc}Down: ${downspeedf wlan0} kb/s
${upspeedgraph wlan0 20,220 000033 091B94 -t}
${voffset -20}${alignc}Up: ${upspeedf wlan0} kb/s
${else}${if_up ppp0}${downspeedgraph ppp0 20,220 110000 550000 -t}
${voffset -20}${alignc}Down: ${downspeedf pp00} kb/s
${upspeedgraph ppp0 20,220 000033 091B94 -t}
${voffset -20}${alignc}Up: ${upspeedf ppp0} kb/s
${else}${if_up eth0}${downspeedgraph eth0 20,220 110000 550000 -t}
${voffset -20}${alignc}Down: ${downspeedf eth0} kb/s
${upspeedgraph eth0 20,220 000033 091B94 -t}
${voffset -20}${alignc}Up: ${upspeedf eth0} kb/s ${else}${voffset}${endif}${endif}${endif}
${voffset -15}Batteria: ${battery_time BAT0}${alignr}${battery_short BAT0}
${battery_bar 6 BAT0}
${alignc}...............................
${if_up wlan0}${execpi 3600 conkyForecast --location=ITXX0065 --template=/home/luna/Scripts/weather.template}${else}${if_up ppp0}${execpi 3600 conkyForecast --location=ITXX0065 --template=/home/luna/Scripts/weather.template}${else}${if_up eth0}${execpi 3600 conkyForecast --location=ITXX0065 --template=/home/luna/Scripts/weather.template}${else}${voffset 60}Nessuna Rete
Meteo non disponibile${endif}${endif}${endif}

weather.template

${voffset 2}${font Comic Strip MN:pixelsize=16}${voffset 0}${alignc}[--datatype=CN]${font}
${image [--datatype=WI] -p 17,448 -s 70x70}${goto 105}${voffset 20}${font Comic Strip MN:pixelsize=20}[--datatype=HT]${font}
${goto 26}${voffset 25}${font Purisa:size=9}${voffset -2}[--datatype=DW --shortweekday --startday=1 --endday=4 --spaces=4]${font}
${image [--datatype=WI --startday=1] -p 17,531 -s 40x40}${image [--datatype=WI --startday=2] -p 74,531 -s 40x40}${image [--datatype=WI --startday=2] -p 130,531 -s 40x40}${image [--datatype=WI --startday=4] -p 182,531 -s 40x40}
${goto 20}${voffset 14}${font HandelGotD:size=8}[--datatype=LT --startday=1 --endday=1 --hideunits]/[--datatype=HT --startday=1 --endday=1 --hideunits]${goto 78}[--datatype=LT --startday=2 --endday=2 --hideunits]/[--datatype=HT --startday=2 --endday=2 --hideunits]${goto 136}[--datatype=LT --startday=3 --endday=3 --hideunits]/[--datatype=HT --startday=3 --endday=3 --hideunits]${goto 192}[--datatype=LT --startday=4 --endday=4 --hideunits]/[--datatype=HT --startday=4 --endday=4 --hideunits]${font}

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

:-) 
:-( 
;-) 
:good: 
:negative: 
:scratch: 
:wacko: 
:yahoo: 
B-) 
:heart: 
:dash: 
:whistle: 
:yes: 
:unsure: 
:cry: 
:mail: