Conky Restyling

Conky

Dopo la scoperta dello script per il calendario orizzontale ho messo mano al conky del mio Pc principale ho aggiunto anche un pò di colore….

Questo lo script per il calendario orizzontale: conky_calhoriz.sh

.conkyrc

# Use Xft?
use_xft yes
xftfont DejaVu Sans Mono: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 810 0
maximum_width 810

# 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 a0a6c5
#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 152
gap_y 700

# 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

# 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
${execpi 1800 conkyForecast --location=ITXX0065 --template=/home/luna/Scripts/conky/meteo.template}
${goto 110}${voffset -10}${font DejaVu Sans Mono:size=12}${time %B %Y}${goto 626}${time %H:%M:%S}${font}
${voffset 4}${font DejaVu Sans Mono:size=9}${execpi 60 /home/luna/Scripts/conky/conky_calhoriz.sh it}${font}${color}
${voffset 10}${alignc}Sto lavorando da: $uptime
${goto 46}${voffset 4}${cpugraph cpu0 22,355 000033 091B94 -t}${goto 420}${cpugraph cpu1 22,355 000033 091B94 -t}
${goto 46}${voffset -26}Cpu0: ${cpu cpu0}%${goto 165}Freq: ${freq_g cpu0} Ghz${goto 307}Temp: ${execpi 100 sensors | grep 'Core0 Temp' | cut -c14-21}${goto 420}Cpu1: ${cpu cpu1}%${goto 562}Freq:${freq_g cpu1} Ghz${goto 681}Temp: ${execpi 100 sensors | grep 'Core1 Temp' | cut -c14-21}
${goto 36}${voffset 3}${memgraph  22,750 000033 091B94 -t}
${goto 36}${voffset -26}Ram: $memperc %${goto 304}$mem Di $memmax${goto 420}Swap: $swapperc %${goto 686}$swap Di $swapmax
${goto 26}${voffset 3}${voffset 4}${downspeedgraph wlan0 22,375 110000 550000 -t -t}${goto 420}${upspeedgraph wlan0 22,375 001100 005500 -t}
${goto 26}${voffset -26}Download: ${downspeedf wlan0} k/s${goto 310}Totale:${totaldown wlan0} ${goto 420}Upload: ${upspeedf wlan0} k/s${goto 700}Totale: ${totalup wlan0}
${goto 16}${voffset 8}ESSID: ${wireless_essid wlan0}${goto 311}Segnale:${wireless_link_qual wlan0} %${goto 420}Ip locale:${goto 710}${addr wlan0}
${goto 3}${voffset 3}${wireless_link_bar 4,818 wlan0}
${voffset 26}

meteo.template

${image [--datatype=BI] -p 190,51 -s 50x50}${image [--datatype=WI] -p 318,1 -s 70x70}${image [--datatype=MI] -p 570,51 -s 43x43}
${goto 432}${font DejaVu Sans Mono:size=16}[--datatype=HT]${font}
${goto 270}${voffset 26}${font DejaVu Sans:size=9}[--datatype=DW --shortweekday --startday=1 --endday=4 --spaces=16]${font}
${image [--datatype=WI --startday=1] -p 257,82 -s 40x40}${image [--datatype=WI --startday=2] -p 342,82 -s 40x40}${image [--datatype=WI --startday=3] -p 435,82 -s 40x40}${image [--datatype=WI --startday=4] -p 525,82 -s 40x40}
${goto 266}${voffset 26}${font DejaVu Sans :size=9}[--datatype=LT --startday=1 --endday=1 --hideunits]/[--datatype=HT --startday=1 --endday=1 --hideunits]${goto 353}[--datatype=LT --startday=2 --endday=2 --hideunits]/[--datatype=HT --startday=2 --endday=2 --hideunits]${goto 450}[--datatype=LT --startday=3 --endday=3 --hideunits]/[--datatype=HT --startday=3 --endday=3 --hideunits]${goto 540}[--datatype=LT --startday=4 --endday=4 --hideunits]/[--datatype=HT --startday=4 --endday=4 --hideunits]${font}

  3 comments for “Conky Restyling

  1. Emanuele
    24 gennaio 2010 at 12:25

    Grazie per la guida!!!

  2. 24 gennaio 2010 at 15:01

    Molto bello!!
    Grazie per lo script
    :bye:

  3. 28 gennaio 2010 at 00:09

    Prego…. e grazie a voi per essere passati di qui… :bye:

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: