Conky Google Now

Conky Now

 

 

Mi sono ispirata pesantemente a questo conky per realizzare la mia versione di Conky Google Now, infatti nella versione originale mancano tutte quelle sciocchezzuole che a me tanto piacciono, vedi la temperatura della CPU, l’utilizzo della RAM, i vari processi e insomma quelle cose li.

ConkyPer realizzare questo conky occorre installare il font “Open Sans Light”, e il programma “curl” altrimenti il meteo non funziona.

Qui ci sono le icone del meteo, e qui lo sfondo.

La cartella con le icone del meteo e lo sfondo vanno salvate nella propria Home.

Per impostare la località di cui si vuole visualizzare il meteo occorre collegarsi a questa pagina, inserire la località desiderata,dare invio e nella barra degli indirizzi apparirà un codice numerico:

meteo

Copiare il codice, cercare nel file .conkyrc il numero 711842 e sostituirlo con quello appena copiato.

Questo è il mio .conkyrc:

# Conky Google Now style #
# Conky settings #
background no
update_interval 1
double_buffer yes
no_buffers yes
# Window specifications #
own_window yes
own_window_type override
own_window_transparent no
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title
own_window_colour e5e5e5
minimum_size 250 0
maximum_width 250
# Alignment #
alignment tr
gap_x 20
gap_y 45
#border_width 5
border_inner_margin 10
#border_outer_margin 10
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=10
override_utf8_locale yes
use_spacer none
short_units yes
pad_percents 2
imlib_cache_size 0
# Color scheme #
default_color 666666
color1 0099CC
color2 9933CC
color3 669900
color4 FF8800
color5 CC0000
color6 AAAAAA
color7 DDDDDD
TEXT
${image /home/luna/now.png -p 0,0 -s 250x144}${voffset 0}${font Open Sans Light:pixelsize=32}${alignc}${time %A}
${voffset 0}${font Open Sans Light:pixelsize=20}${alignc}${time %d %B %Y}
${voffset 0}${font Open Sans Light:pixelsize=40}${alignc}${time %H:%M}${font}
${color7}${hr}${color}
${image /home/luna/now.png -p -0,150 -s 250x238}${offset 4}${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=711842&u=c" -o ~/.cache/weather.xml}${font Open Sans Light:size=15}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
${font Open Sans Light:size=45}${alignr 4}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}
${execi 300 cp -f ~/.weathericons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 4,200 -s 60x60}
${offset 4}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${offset 4}${color6}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${color}
${execi 300 cp -f ~/.weathericons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1).png ~/.cache/weather-today.png}${image ~/.cache/weather-today.png -p 4,334 -s 30x30}${execi 300 cp -f ~/.weathericons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1).png ~/.cache/weather-tomorrow.png}${image ~/.cache/weather-tomorrow.png -p 134,334 -s 30x30}
${goto 60}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1}${goto 190}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1}
${goto 60}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1}° ${color6}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1}°${color}${goto 190}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1}° ${color6}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1}°${color}${voffset 15}
${color7}${hr}${color}
${voffset -30}
${image /home/luna/now.png -p -0,394 -s 250x157}${voffset 14}${offset 4}${color1}CPU ${color}${color3} ${cpu cpu}%${color}${color1}${alignr 4}Temp: ${color}${color2}${acpitemp}°C${color}
${offset 4}${cpugraph cpu0 50,240 FF8800 FF8800}
${offset 4}${color1}RAM:${color}${color3} $memperc% ${color}${alignr 4}${color1}SWAP:${color}${color3} $swapperc${color}${alignr}
${offset 4}${color1}Uptime:${color} ${alignr 4}${color2}${uptime}${color}
${offset 4}${color1}Batteria:${color}${color3}${alignr 4} ${battery_time BAT0}${color}
${color7}${hr}${color}
${voffset 0}${image /home/luna/now.png -p -0,558 -s 250x126}${offset 4}${color1}Processi ${goto 130}CPU%${goto 203} MEM%${color}
${offset 4}${color1}${top name 1}${color}${goto 125}${color3}${top cpu 1} ${color}${goto 205}${color2}${top mem 1}${color}
${offset 4}${color1}${top name 2}${color}${goto 125}${color3}${top cpu 2} ${color}${goto 205}${color2}${top mem 2}${color}
${offset 4}${color1}${top name 3}${color}${goto 125}${color3}${top cpu 3} ${color}${goto 205}${color2}${top mem 3}${color}
${offset 4}${color1}${top name 4}${color}${goto 125}${color3}${top cpu 4} ${color}${goto 205}${color2}${top mem 4}${color}
${offset 4}${color1}${top name 5}${color}${goto 125}${color3}${top cpu 5} ${color}${goto 205}${color2}${top mem 5}${color}
${color7}${hr}${color}
${image /home/luna/now.png -p -0,691 -s 250x134}${if_existing /proc/net/route wlan0}
${voffset -14}${offset 4}${color1}Up:${color} ${color3}${upspeed wlan0}${color}${alignr 4}${color1}Down:${color} ${color3}${downspeed wlan0}${color}
${offset 4}${upspeedgraph wlan0 50,120 FF8800 FF8800}${alignr 4}${downspeedgraph wlan0 50,120 FF8800 FF8800}
${offset 4}${color1}Sent:${color} ${color2}${totalup wlan0}${color}${alignr 4}${color1}Received:${color} ${color2}${totaldown wlan0}${color}
${else}${if_existing /proc/net/route eth0}
${voffset -14}${offset 4}${color1}Up:${color} ${color3}${upspeed eth0}${color}${alignr 4}${color1}Down:${color} ${color3}${downspeed eth0}${color}
${offset 4}${upspeedgraph eth0 50,120 FF8800 FF8800}${alignr 4}${downspeedgraph eth0 50,120 FF8800 FF8800}
${offset 4}${color1}Sent:${color} ${color2}${totalup eth0}${color}${alignr 4}${color1}Received:${color} ${color2}${totaldown eth0}${color}
${else}
Network disconnected
${color6}Connect to a network to see statistics${color}
${voffset 50}
${endif}${endif}${voffset -24}

E’ tutto… 🙂

 
Fonte: Conky Google Now
 

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: