Conky orizzontale

sabato 23 gennaio 2010
Pubblicato da Elyxya

Conky orizzontale
Non potevo esimermi dal creare un conky anche per Arch Linux sul mio EeePc 1000H, quindi ho deciso di crearne uno orizzontale, è il mio primo conky orizzontale, e pensavo fosse più conplicato allineare tutti gli elementi….invece è stato abbastanza semplice…e poi mi era piaciuto troppo il calendario orizzontale che avevo trovato su Conky Hardcore…..

.conkyrc

# Create own window instead of using desktop (required in nautilus)
	background no
	own_window yes
	own_window_transparent yes
	own_window_type override
	#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
xftfont DejaVu Sans Mono:size=9
xftalpha 1.0 #0.2
override_utf8_locale yes
update_interval 1.0
total_run_times 0
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment top_middle
#alignment bottom_middle
uppercase no
text_buffer_size 512 # Default

# Stippled borders?
stippled_borders 0
# Draw borders around text
draw_borders no
# border margins
border_inner_margin 5
# border width
border_width 1
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 2 #sinistra destra
gap_y 4 #su giu
# Minimum size of text area
maximum_width 1024 0
minimum_size 1024
# Default colors and also border colors
default_color f9f8fe
#default_color ffffff
#default_shade_color black
#default_outline_color white
own_window_colour 333333
color0 FFD700 #Gold  #7FFFD4 #Aquamarine
color1 c0c545
color2 137797
color3 7FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
#	colours below used by colorize script
color7 6854ff #MidSlateGrey
color8 FFFF00 #Yellow
color9 FF0000 #Red
short_units yes
pad_percents 2
imlib_cache_size 0
TEXT
${voffset 0}${font DejaVu Sans Mono:size=9}${goto 36}${time %B %Y}${execpi 60 /home/luna/Scripts/conky/conky_calhoriz.sh it}${color} ${goto 0} ${if_existing /proc/net/route wlan0}${execpi 600 conkyForecast --location=ITXX0065 --template=/home/luna/Scripts/conky/weather.template}${else}${if_existing /proc/net/route ppp0}${execpi 600 conkyForecast --location=ITXX0065 --template=/home/luna/Scripts/conky/weather.template}${else}${if_existing /proc/net/route eth0}${execpi 600 conkyForecast --location=ITXX0065 --template=/home/luna/Scripts/conky/weather.template}${else}${goto 850}${voffset 0}Meteo non disponibile${endif}${endif}${endif}
${goto 42}${voffset -12}${color dcdcdc}${time %H:%M:%S}
${voffset -5}${goto 55}${cpugraph cpu0 18,140 000033 091B94 -t}${goto 200}${memgraph 18,140 000033 091B94 -t}${goto 699}${if_existing /proc/net/route wlan0}${downspeedgraph wlan0 18,140 110000 550000 -t}${goto 845}${upspeedgraph wlan0 18,140 001100 005500 -t}${else}${if_existing /proc/net/route ppp0}${downspeedgraph ppp0 18,110000 550000 4682ba -t}${goto 845}${upspeedgraph ppp0 18,140 001100 005500 -t}${else}${if_existing /proc/net/route eth0}${downspeedgraph eth0 18,140 110000 550000 -t}${goto 845}${upspeedgraph eth0 18,140 001100 005500 -t}${color}${endif}${endif}${endif}
${goto 57}${voffset -26}CPU: ${cpu cpu}%${goto 118}Temp: ${acpitemp}°C ${goto 204}RAM: $memperc% SWAP: $swapperc%${goto 345}Freq: $freq MHz${goto 451}SHE: ${execi 10 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor}${goto 570}Uptime:$uptime${goto 699}${if_existing /proc/net/route wlan0}Download: ${downspeedf wlan0} kb/s${goto 850}Upload:   ${upspeedf wlan0} kb/s${else}${if_existing /proc/net/route ppp0}Download: ${downspeedf ppp0} kb/s${goto 850}Upload:   ${upspeedf ppp0} kb/s ${else} ${if_existing /proc/net/route eth0}Download: ${downspeedf eth0} kb/s${goto 850}Upload:   ${upspeedf eth0} kb/s${else}${voffset 0}${alignc}Nessuna Rete${color}${endif}${endif}${endif}${color}${font}
${color7}${battery_bar 3 BAT0}${color}
${voffset -76}

weather.template

${color dcdcdc}${image [--datatype=WI] -p 852,-10 -s 32x32}${goto 910}${voffset -8}${font DejaVu Sans Mono:size=12}[--datatype=HT]${font}${voffset 0}${image [--datatype=MI] -p 962,1 -s 26x26}${color}

E qui potete trovare lo script per il calendario orizontale: conky_calhoriz.sh

  • Google Reader
  • Technotizie
  • FriendFeed
  • Segnalo
  • Twitter
  • Technorati Favorites
  • Yahoo Bookmarks
  • Yahoo Buzz
  • Facebook
  • Share/Bookmark

Tags: , , ,

Altri articoli che potrebbero interessarti

immagine
Arch Linux installata su EeePc 1000h
Era da un pò di tempo che pensavo di mettere le mani sul mio Eeepc 1000h e convertirlo ad Arch...
immagine
Conky Restyling
Dopo la scoperta dello script per il calendario orizzontale ho messo mano al conky del mio Pc principale...
immagine
Sistema aggiornato……ed ecco il mio nuovo Conky per EeePc 1000h
Dopo aver aggiornato Ubuntu che mi rimaneva da fare? Ok, ho cambiato il tema, lo sfondo del...
immagine
Arch Linux, installare programmi con Pacman
Dopo anni di utilizzo del fantastico apt-get ora devo fare conoscenza con Pacman, il gestore...
immagine
Installare CrunchBang Linux su Eeepc 1000H
CrunchBang Linux è una distribuzione GNU/Linux leggera e veloce basata su Ubuntu. Si avvale di...

2 Commenti per “Conky orizzontale”

  1. artic80

    Bellissimo… mi sa che te lo rubo per metterlo sul mio 1008HA :D

    Elyxya Reply:

    @artic80, Grazie….in effetti piace tanto anche a me :-)

    #3298

Lascia un commento

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