News:

Scarica subito LibreOffice 24.2 ancora più compatibile con la nota suite per ufficio commerciale.

Menu principale

La mostra dei Conky

Aperto da danialbi, Sabato 20 Novembre 2010, 00:13:51

Discussione precedente - Discussione successiva

danialbi

comunque daniodo hai usato il sistema migliore per capire il funzionamento del conky....cioe' quello di prendere un conky gia fatto  e piano piano modificare la varie voci...i risultati sono sorprendenti!!

e poi alla fine  guarda quanta ram consuma....

daniodo

La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

daniodo

Elaborazione del conky già postato in precedenza.....



Sono riuscito ad infilare il mio avatar che uso qui, però non ho capito perchè è tutt'oggi che funziona bene ma ora la sezione meteo mi indica come Stazione Frosinone anzichè Viterbo (codice utilizzato ITXX0089)  :boh:

Uploaded with ImageShack.us

ecco i file di configurazione:
# conky configuration

# set to yes if you want Conky to be forked in the background
background no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont A.C.M.E. Secret Agent Italic:size=8

# Text alpha when using Xft
xftalpha 0.8

# 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 no

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

# Minimum size of text area
minimum_size 300 0
maximum_width 270

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# own window options
own_window      yes
own_window_transparent   yes
own_window_type      override
own_window_hints   undecorated,below,sticky,skip_taskbar,skip_pager

# 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 10
gap_y 0

# 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 right

#COLORI
color1 white #bianco
color2 6892C6 #light blue
color3 FC8820 #Arancione
color4 FF4500 #Arancione2
color5 CC0000 #Rosso
color6 F10404 #Rosso2
color7 78BF39 #Verde
color8 2d762b #Verde2
color9 4bc605 #verde3
color10 002ef5 #blu
color11 615b5b #grigio

text_buffer_size 2048

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# tutto ciò che sarà scritto dopo 'TEXT' sarà visualizzato sul desktop

TEXT
${image /home/daniodo/toro.png -p 230,11 -s 40x32} ${alignc 20}${font Arial Black:size=28}${time %H:%M}${font}
#${alignc}${time %a, }${time %d/%m/%Y [%V. week]}
#********* METEO *********
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}Meteo${font}  ${hr}${color1}
${execpi 1800 conkyForecast --location=ITXX0089 --template=/usr/share/conkyforecast/example/conkyForecast.template}
#********* orario analogico *********
#${font DejaVuSans:size=7.5:bold}Analog Clock$font ${hr 2}
#${color white}${voffset 20}${goto 53}${font clockfaces:size=110}S
#${voffset -158}${goto 60}${font zoraclockM:size=110}${execpi 20 date | cut -c15-16 | xargs ~/Conky/scripts/clocks.sh}
#${voffset -150}${goto 80}${font zoraclockH:size=80}${execpi 20 ~/Conky/scripts/zoraclock.sh}
#********* calendario mese corrente, precedente, futuro *********
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}${execi 60 date +"%B %Y" | tr "[:lower:]" "[:upper:]"}${font Snap.se:size=8}  ${time [%V^ sett.]} ${hr 1 }${color1}
${font Bitstream Vera Sans Mono:size=15}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color red}'"$DJS"'${color white}'" "/}$font
${font Bitstream Vera Sans Mono:size=7,5}${pre_exec cal -3 | cut -c23-44 --complement}$font
#********* SISTEMA *********
#${voffset 2}${font OpenLogos:size=18}u${font}   Kernel:  ${alignr}${kernel}
#${font StyleBats:size=18}A${font}   CPU1: ${freq_g cpu1} GHz - ${cpu cpu1}% ${alignr}${cpubar cpu1 10,60}
#${font StyleBats:size=18}A${font}   CPU2: ${freq_g cpu2} GHz - ${cpu cpu2}% ${alignr}${cpubar cpu2 10,60}
#${font StyleBats:size=18}g${font}   RAM: $memperc% ${alignr}${membar 10,60}
#${font StyleBats:size=18}j${font}   SWAP: $swapperc% ${alignr}${swapbar 10,60}
#${font StyleBats:size=18}q${font}   Uptime: ${alignr}${uptime}
#${font StyleBats:size=18}j${font}   CPU temp:${color} ${acpitemp}°C ${color 8c8c8c}
#********* RETE *********
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}Rete${font}  ${hr}${color1}
${if_existing /proc/net/route wlan0}
${color3}${voffset -32}${font}${goto 90}Wireless: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 10,92 wlan0}${font}  ${hr}${color1}
${voffset 5}${font}   Local Ip: ${alignr}${addr wlan0}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed wlan0} kB/s ${goto 150}${color3}Up: ${color1}${upspeed wlan0} KB/s
${downspeedgraph wlan0 25,130 3465A4 78BF39} ${alignr}${upspeedgraph wlan0 25,130 3465A4 78BF39}
${else}${if_existing /proc/net/route eth0}
${voffset -10}${font}   Local Ip: ${alignr}${addr eth0}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed eth0} kB/s ${goto 150}${color3}Up: ${color1}${upspeed eth0} KB/s
${downspeedgraph eth0 25,130 3465A4 78BF39} ${alignr}${upspeedgraph eth0 25,130 3465A4 78BF39}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -10}${font}   Local Ip: ${alignr}${addr eth1}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed eth1} kB/s ${goto 150}${color3}Up: ${color1}${upspeed eth1} KB/s
${downspeedgraph eth1 25,130 3465A4 78BF39} ${alignr}${upspeedgraph eth1 25,130 3465A4 78BF39}
${endif}${else}
${font PizzaDude Bullets:size=16}4${font}   Network Unavailable
${endif}
#********* BATTERIA *********
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}Autonomia${font}  ${hr}${color1}
${font}   Batteria: ${battery_percent BAT1}%   -   ${battery_time BAT1}
#********* RHYTHMBOX *********
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}Musica - Rhythmbox${font}  ${hr}${color1}
${if_running rhythmbox}${color1}${font}Artist: ${exec rhythmbox-client --no-start --print-playing-format %aa}
Song: ${exec rhythmbox-client --no-start --print-playing-format %tt}
Album: ${exec rhythmbox-client --no-start --print-playing-format %at}
${else}
${color1}${font}${alignr}Rhythmbox Closed
$endif
#
#
#***********************************************************************************************************************
# Possible variables to be used:
#
#      Variable         Arguments                  Description               
# addr              (interface)   IP address for an interface
# acpiacadapter                   ACPI ac adapter state.                   
# acpifan                         ACPI fan state                           
# acpitemp                        ACPI temperature.                       
# adt746xcpu                      CPU temperature from therm_adt746x       
# adt746xfan                      Fan speed from therm_adt746x             
# alignr            (num)         Right-justify text, with space of N
# alignc                          Align text to centre
# battery           (num)         Remaining capasity in ACPI or APM       
# battery. ACPI battery number can be     
# given as argument (default is BAT0).     
# buffers                         Amount of memory buffered               
# cached                          Amount of memory cached                 
# color             (color)       Change drawing color to color           
# cpu                             CPU usage in percents                   
# cpubar            (height)      Bar that shows CPU usage, height is     
# bar's height in pixels                 
# cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
# CPU usage graph, with optional colours in hex,
# minus the #.
# downspeed         net           Download speed in kilobytes             
# downspeedf        net           Download speed in kilobytes with one     
# decimal                                 
# downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
# Download speed graph, colours defined in
# hex, minus the #.
# exec              shell command Executes a shell command and displays   
# the output in conky. warning: this     
# takes a lot more resources than other   
# variables. I'd recommend coding wanted   
# behaviour in C and posting a patch :-). 
# execbar           shell command Same as exec, except if the first value
# return is a value between 0-100, it
# will use that number for a bar.
# The size for the bar is currently fixed,
# but that may change in the future.
# execgraph         shell command Same as execbar, but graphs values
# execi             interval, shell command
Same as exec but with specific interval.
# Interval can't be less than             
# update_interval in configuration.       
# font   font Specify a different font.  Only applies
# to one line.
# fs_bar            (height), (fs)Bar that shows how much space is used on
# a file system. height is the height in   
# pixels. fs is any file on that file     
# system.                                 
# fs_free           (fs)          Free space on a file system available   
# for users.                               
# fs_free_perc      (fs)          Free percentage of space on a file       
# system available for users.             
# fs_size           (fs)          File system size                         
# fs_used           (fs)          File system used space                   
# hr                (height)      Horizontal line, height is the height in
# pixels                                   
#    
# your local computer.                     
# if_running        (process)     if PROCESS is running, display
# everything if_running and the matching $endif
# if_existing       (file)        if FILE exists, display everything between
# if_existing and the matching $endif
# if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
# if_mounted and the matching $endif
# else                            Text to show if any of the above are not true
# kernel                          Kernel version                         
# linkstatus        (interface)   Get the link status for wireless connections
# loadavg           (1), (2), (3) System load average, 1 is for past 1     
# minute, 2 for past 5 minutes and 3 for   
# past 15 minutes.                         
# machine                         Machine, i686 for example               
# mails                           Mail count in mail spool. You can use   
# program like fetchmail to get mails from
# some server using your favourite         
# protocol. See also new_mails.           
# mem                             Amount of memory in use                 
# membar            (height)      Bar that shows amount of memory in use   
# memmax                          Total amount of memory                   
# memperc                         Percentage of memory in use
#
# metar_ob_time
# metar_temp
# metar_tempf                     Temp in F
# metar_windchill
# metar_dew_point                 There are a bunch of these
# metar_rh                        and they are self-explanatory
# metar_windspeed
# metar_winddir
# metar_swinddir
# metar_cloud
# metar_u2d_time
#
# ml_upload_counter               total session upload in mb
# ml_download_counter             total session download in mb
# ml_nshared_files                number of shared files
# ml_shared_counter               total session shared in mb, buggy
# in some mldonkey versions
# ml_tcp_upload_rate              tcp upload rate in kb/s
# ml_tcp_download_rate            tcp download rate in kb/s
# ml_udp_upload_rate              udp upload rate in kb/s
# ml_udp_download_rate            udp download rate in kb/s
# ml_ndownloaded_files            number of completed files
# ml_ndownloading_files           number of downloading files
#
# mpd_artist Artist in current MPD song
# (must be enabled at compile)
# mpd_album Album in current MPD song
# mpd_bar           (height)      Bar of mpd's progress
# mpd_bitrate                     Bitrate of current song
# mpd_status                      Playing, stopped, et cetera.
# mpd_title Title of current MPD song
# mpd_vol MPD's volume
# mpd_elapsed                     Song's elapsed time
# mpd_length                      Song's length
# mpd_percent                     Percent of song's progress
# new_mails                       Unread mail count in mail spool.         
# nodename                        Hostname                                 
# outlinecolor      (color)       Change outline color                     
# pre_exec          shell command Executes a shell command one time before
# conky displays anything and puts output
# as text.                                 
# processes                       Total processes (sleeping and running)   
# running_processes               Running processes (not sleeping),       
# requires Linux 2.6                       
# shadecolor        (color)       Change shading color                     
# stippled_hr       (space),      Stippled (dashed) horizontal line       
# (height)       
# swapbar           (height)      Bar that shows amount of swap in use     
# swap                            Amount of swap in use                   
# swapmax                         Total amount of swap                     
# swapperc                        Percentage of swap in use               
# sysname                         System name, Linux for example           
# offset            pixels        Move text over by N pixels
# tail              logfile, lines (interval)
# Displays last N lines of supplied text
# text file.  If interval is not supplied,
# Conky assumes 2x Conky's interval.
# Max of 30 lines.
# Max of 30 lines can be displayed.
# time              (format)      Local time, see man strftime to get more
# information about format                 
# totaldown         net           Total download, overflows at 4 GB on     
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times 
# it has already done that before conky   
# has started.                           
# top               type, num     This takes arguments in the form:
# top <name> <number>
# Basically, processes are ranked from
# highest to lowest in terms of cpu
# usage, which is what <num> represents.
# The types are: "name", "pid", "cpu", and
# "mem".
# There can be a max of 10 processes listed.
# top_mem           type, num     Same as top, except sorted by mem usage
# instead of cpu
# totalup           net           Total upload, this one too, may overflow
# updates                         Number of updates (for debugging)       
# upspeed           net           Upload speed in kilobytes               
# upspeedf          net           Upload speed in kilobytes with one       
# decimal                                 
# upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
# Upload speed graph, colours defined in
# hex, minus the #.
# uptime                          Uptime                                   
# uptime_short                    Uptime in a shorter format               
#
# seti_prog                       Seti@home current progress
# seti_progbar      (height)      Seti@home current progress bar
# seti_credit                     Seti@hoome total user credit


e quest'altro è per il forecast:
${color3}${font Bitstream Vera Sans Mono:size=9}${alignr 55}Ultimo Aggiornamento: [--datatype=LU]${font}
${voffset 5}${goto 10}${color1}${font ConkyWeather:style=Bold:size=40}[--datatype=WF]${font}
${voffset 5}${goto 20}[--datatype=HT --hideunits --centeredwidth=3]/[--datatype=LT --hideunits --centeredwidth=3]
${voffset 10}${goto 10}${font ConkyWindNESW:size=40}[--datatype=BS]${font}
${voffset 5}${goto 10}[--datatype=WS --imperial] - [--datatype=WD]
${voffset -145}${goto 80}${color1}${font Bitstream Vera Sans Mono:style=Bold:size=10}[--datatype=CT]${font}
${voffset 10}${goto 80}${color3}Stazione: ${color1}[--datatype=OB]
${goto 80}${color3}Pioggia: ${color1}[--datatype=PC]
${goto 80}${color3}Irradiazione UV: ${color1}[--datatype=UI] - [--datatype=UT]
${goto 80}${color3}Umidità: ${color1}[--datatype=HM]
${goto 80}${color3}Punto di Rugiada: ${color1}[--datatype=DP]
${goto 80}${color3}Alba/Tramonto: ${color1}[--datatype=SR] / [--datatype=SS]
${goto 80}${color3}Pressione: ${color1}[--datatype=BR] - [--datatype=BD]
${goto 80}${color3}Fase Lunare: ${color1}[--datatype=MP]
${voffset 25}${goto 28}[--datatype=DW --startday=1 --shortweekday]${goto 92}[--datatype=DW --startday=2 --shortweekday]${goto 157}[--datatype=DW --startday=3 --shortweekday]${goto 224}[--datatype=DW --startday=4 --shortweekday]
${voffset 0}${goto 20}${font ConkyWeather:size=32}[--datatype=WF --startday=1 --endday=4 --spaces=2]${font}
${voffset 5}${goto 20}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 85}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 150}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 215}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]


Pian piano mi avvicino alla conoscenza........  :ciao:
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

danialbi


daniodo

La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

dieguitus

Citazione di: daniodo il Domenica 21 Novembre 2010, 22:43:50
ora la sezione meteo mi indica come Stazione Frosinone anzichè Viterbo (codice utilizzato ITXX0089)  :boh:
E se metti il codice ITXX0030 (Frosinone)? ;D

daniodo

Ora non ho il pc con il conky incriminato..... (anche se potrei copiarmi i files di configurazione e settarlo in quest'altro pc  ;D.... troppo tempo!)....... nel pomeriggio ci provo, intanto grazie.
Però, lo screenlet infopanel (se lo metto), è settato su ITXX0089 e viene fuori Viterbo  :boh:
Alcune prove in serata l'avevo fatte cambiando ovviamente le ultime 2 cifre e la città viene cambiata.  :ciao:
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

daniodo

Il problema del codice utilizzato per le previsioni meteo, fortunatamente era isolato, nel senso che oggi funziona tutto normalmente con il solito codice che avevo (ITXX0089 per la mia città).

Volevo chiedere però come mai in questa porzione di codice riguardo alle informazioni sulla rete
${color3}${voffset -32}${font}${goto 90}Wireless: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 10,92 wlan0}${font}  ${hr}${color1}
${voffset 5}${font}   Local Ip: ${alignr}${addr wlan0}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed wlan0} kB/s ${goto 150}${color3}Up: ${color1}${upspeed wlan0} KB/s
${downspeedgraph wlan0 25,130 3465A4 78BF39} ${alignr}${upspeedgraph wlan0 25,130 3465A4 78BF39}


... la percentuale che mi indica la captazione del wireless oscilla intorno al 56/58% mentre l'analoga icona della cairo-dock mi segnala nello stesso frangente 80/81% (la relativa barra di progresso è riempita indicativamente per l'80% della sua capacità, quindi deduco che la percentuale esatta sia quella indicata dalla cairo).
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

daniodo

... ok risolto.... l'ho modificato così:



Uploaded with ImageShack.us

nuovo codice del .conkyrc
# conky configuration

# set to yes if you want Conky to be forked in the background
background no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont A.C.M.E. Secret Agent Italic:size=8

# Text alpha when using Xft
xftalpha 0.8

# 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 no

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

# Minimum size of text area
minimum_size 300 0
maximum_width 270

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# own window options
own_window      yes
own_window_transparent   yes
own_window_type      override
own_window_hints   undecorated,below,sticky,skip_taskbar,skip_pager

# 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 10
gap_y 0

# 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 right

#COLORI
color1 white #bianco
color2 6892C6 #light blue
color3 FC8820 #Arancione
color4 f6ff00 #giallo
color5 CC0000 #Rosso
color6 F10404 #Rosso2
color7 78BF39 #Verde
color8 2d762b #Verde2
color9 4bc605 #verde3
color10 002ef5 #blu
color11 615b5b #grigio
color12 FF4500 #Arancione2

text_buffer_size 2048

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# tutto ciò che sarà scritto dopo 'TEXT' sarà visualizzato sul desktop

TEXT
${alignr}${font DejaVuSerif-Bold:size=8}${time %A %d %B %Y}
${alignc}${font DejaVuSerif-Bold:size=35}${time %H:%M}
${image /home/daniodo/linuxmint.png -p 0,0 -s 62x62}
#********* SISTEMA *********
${voffset -85}${color0}${font}Kernel: $sysname-$kernel ${alignr}$nodename
${color0}Architettura: $machine ${alignr}Uptime: $uptime_short
${voffset 5}${color #729FCF}${font zekton:size=9}TEMPERATURE${font} ${color1}$hr
${color0}Core: ${execi 30 sensors | awk '/Core 0/ {print $3}'} ${alignr}GPU: +${nvidia temp}°C
${voffset 5}${color #729FCF}${font zekton:size=9}PROCESSORE & PROCESSI${font} ${color1}$hr
${color0}Core0: ${cpu cpu0}% ${freq_g 0}GHz ${alignr}Core1: ${cpu cpu1}% ${freq_G 1}GHz
${color0}${cpugraph cpu0 25,130 3465A4 78BF39} ${alignr}${cpugraph cpu1 25,130 3465A4 78BF39}
#${color0}Processo        ${alignc}PID      CPU%    MEM%
#${color0}${top name 1} ${alignc}${top pid 1}  ${top cpu 1}  ${top mem 1}
#${color0}${top name 2} ${alignc}${top pid 2}  ${top cpu 2}  ${top mem 2}
#${color0}${top name 3} ${alignc}${top pid 3}  ${top cpu 3}  ${top mem 3}
${color #729FCF}${font zekton:size=9}MEMORIA${font} ${color1}$hr
${color0}RAM (${memperc}% Use): $mem/$memmax $membar
${color0}Swap (${swapperc}% Use): $swap/$swapmax $swapbar
${voffset 5}${color #729FCF}${font zekton:size=9}PARTIZIONI${font} ${color1}$hr
${color0}root (${fs_free_perc /}% Free): ${color0}${fs_used /}${color0}/${color0}${fs_size /} ${color0}${fs_bar /}
${color0}home (${fs_free_perc /home}% Free): ${color0}${fs_used /home}${color0}/${color0}${fs_size /home} ${color0}${fs_bar /home}
#${color0}tmp (${fs_free_perc /tmp}% Free): ${color0}${fs_used /tmp}${color0}/${color0}${fs_size /tmp} ${color0}${fs_bar /tmp}
#********* METEO *********
${voffset 15}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}Meteo${font}  ${hr}${color1}
${execpi 1800 conkyForecast --location=ITXX0089 --template=/usr/share/conkyforecast/example/conkyForecast.template}
#********* RETE *********
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}Rete${font}  ${hr}${color1}
${if_existing /proc/net/route wlan0}
${image /home/daniodo/Wifi.jpg -p 18,575 -s 40x20}
${voffset -25}${goto 75}${color #8c8c8c}Segnale ${color} ${wireless_link_qual_perc wlan0}%${alignr}${color #8c8c8c}IP: ${color}${addr wlan0}
${goto 75}${color #8c8c8c}${wireless_link_bar 5,90 wlan0}${color}${alignr}${color #8c8c8c}${color}${wireless_essid wlan0}${color1}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed wlan0} kB/s ${goto 150}${color3}Up: ${color1}${upspeed wlan0} KB/s
${downspeedgraph wlan0 25,130 3465A4 78BF39} ${alignr}${upspeedgraph wlan0 25,130 3465A4 78BF39}
${else}${if_existing /proc/net/route eth0}
${voffset -10}${font}   Local Ip: ${alignr}${addr eth0}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed eth0} kB/s ${goto 150}${color3}Up: ${color1}${upspeed eth0} KB/s
${downspeedgraph eth0 25,130 3465A4 78BF39} ${alignr}${upspeedgraph eth0 25,130 3465A4 78BF39}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -10}${font}   Local Ip: ${alignr}${addr eth1}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed eth1} kB/s ${goto 150}${color3}Up: ${color1}${upspeed eth1} KB/s
${downspeedgraph eth1 25,130 3465A4 78BF39} ${alignr}${upspeedgraph eth1 25,130 3465A4 78BF39}
${endif}${else}
${font PizzaDude Bullets:size=16}4${font}   Network Unavailable
${endif}
#********* BATTERIA *********
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}Autonomia${font}  ${hr}${color1}
${font}   Batteria: ${battery_percent BAT1}%   -   ${battery_time BAT1}
#********* RHYTHMBOX *********
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font African:style=Bold:size=12}Musica - Rhythmbox${font}  ${hr}${color1}
${if_running rhythmbox}${color1}${font}Artist: ${exec rhythmbox-client --no-start --print-playing-format %aa}
Song: ${exec rhythmbox-client --no-start --print-playing-format %tt}
Album: ${exec rhythmbox-client --no-start --print-playing-format %at}
${else}
${color1}${font}${alignr}Rhythmbox Closed
$endif
#
#
#***********************************************************************************************************************
# Possible variables to be used:
#
#      Variable         Arguments                  Description               
# addr              (interface)   IP address for an interface
# acpiacadapter                   ACPI ac adapter state.                   
# acpifan                         ACPI fan state                           
# acpitemp                        ACPI temperature.                       
# adt746xcpu                      CPU temperature from therm_adt746x       
# adt746xfan                      Fan speed from therm_adt746x             
# alignr            (num)         Right-justify text, with space of N
# alignc                          Align text to centre
# battery           (num)         Remaining capasity in ACPI or APM       
# battery. ACPI battery number can be     
# given as argument (default is BAT0).     
# buffers                         Amount of memory buffered               
# cached                          Amount of memory cached                 
# color             (color)       Change drawing color to color           
# cpu                             CPU usage in percents                   
# cpubar            (height)      Bar that shows CPU usage, height is     
# bar's height in pixels                 
# cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
# CPU usage graph, with optional colours in hex,
# minus the #.
# downspeed         net           Download speed in kilobytes             
# downspeedf        net           Download speed in kilobytes with one     
# decimal                                 
# downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
# Download speed graph, colours defined in
# hex, minus the #.
# exec              shell command Executes a shell command and displays   
# the output in conky. warning: this     
# takes a lot more resources than other   
# variables. I'd recommend coding wanted   
# behaviour in C and posting a patch :-). 
# execbar           shell command Same as exec, except if the first value
# return is a value between 0-100, it
# will use that number for a bar.
# The size for the bar is currently fixed,
# but that may change in the future.
# execgraph         shell command Same as execbar, but graphs values
# execi             interval, shell command
Same as exec but with specific interval.
# Interval can't be less than             
# update_interval in configuration.       
# font   font Specify a different font.  Only applies
# to one line.
# fs_bar            (height), (fs)Bar that shows how much space is used on
# a file system. height is the height in   
# pixels. fs is any file on that file     
# system.                                 
# fs_free           (fs)          Free space on a file system available   
# for users.                               
# fs_free_perc      (fs)          Free percentage of space on a file       
# system available for users.             
# fs_size           (fs)          File system size                         
# fs_used           (fs)          File system used space                   
# hr                (height)      Horizontal line, height is the height in
# pixels                                   
#    
# your local computer.                     
# if_running        (process)     if PROCESS is running, display
# everything if_running and the matching $endif
# if_existing       (file)        if FILE exists, display everything between
# if_existing and the matching $endif
# if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
# if_mounted and the matching $endif
# else                            Text to show if any of the above are not true
# kernel                          Kernel version                         
# linkstatus        (interface)   Get the link status for wireless connections
# loadavg           (1), (2), (3) System load average, 1 is for past 1     
# minute, 2 for past 5 minutes and 3 for   
# past 15 minutes.                         
# machine                         Machine, i686 for example               
# mails                           Mail count in mail spool. You can use   
# program like fetchmail to get mails from
# some server using your favourite         
# protocol. See also new_mails.           
# mem                             Amount of memory in use                 
# membar            (height)      Bar that shows amount of memory in use   
# memmax                          Total amount of memory                   
# memperc                         Percentage of memory in use
#
# metar_ob_time
# metar_temp
# metar_tempf                     Temp in F
# metar_windchill
# metar_dew_point                 There are a bunch of these
# metar_rh                        and they are self-explanatory
# metar_windspeed
# metar_winddir
# metar_swinddir
# metar_cloud
# metar_u2d_time
#
# ml_upload_counter               total session upload in mb
# ml_download_counter             total session download in mb
# ml_nshared_files                number of shared files
# ml_shared_counter               total session shared in mb, buggy
# in some mldonkey versions
# ml_tcp_upload_rate              tcp upload rate in kb/s
# ml_tcp_download_rate            tcp download rate in kb/s
# ml_udp_upload_rate              udp upload rate in kb/s
# ml_udp_download_rate            udp download rate in kb/s
# ml_ndownloaded_files            number of completed files
# ml_ndownloading_files           number of downloading files
#
# mpd_artist Artist in current MPD song
# (must be enabled at compile)
# mpd_album Album in current MPD song
# mpd_bar           (height)      Bar of mpd's progress
# mpd_bitrate                     Bitrate of current song
# mpd_status                      Playing, stopped, et cetera.
# mpd_title Title of current MPD song
# mpd_vol MPD's volume
# mpd_elapsed                     Song's elapsed time
# mpd_length                      Song's length
# mpd_percent                     Percent of song's progress
# new_mails                       Unread mail count in mail spool.         
# nodename                        Hostname                                 
# outlinecolor      (color)       Change outline color                     
# pre_exec          shell command Executes a shell command one time before
# conky displays anything and puts output
# as text.                                 
# processes                       Total processes (sleeping and running)   
# running_processes               Running processes (not sleeping),       
# requires Linux 2.6                       
# shadecolor        (color)       Change shading color                     
# stippled_hr       (space),      Stippled (dashed) horizontal line       
# (height)       
# swapbar           (height)      Bar that shows amount of swap in use     
# swap                            Amount of swap in use                   
# swapmax                         Total amount of swap                     
# swapperc                        Percentage of swap in use               
# sysname                         System name, Linux for example           
# offset            pixels        Move text over by N pixels
# tail              logfile, lines (interval)
# Displays last N lines of supplied text
# text file.  If interval is not supplied,
# Conky assumes 2x Conky's interval.
# Max of 30 lines.
# Max of 30 lines can be displayed.
# time              (format)      Local time, see man strftime to get more
# information about format                 
# totaldown         net           Total download, overflows at 4 GB on     
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times 
# it has already done that before conky   
# has started.                           
# top               type, num     This takes arguments in the form:
# top <name> <number>
# Basically, processes are ranked from
# highest to lowest in terms of cpu
# usage, which is what <num> represents.
# The types are: "name", "pid", "cpu", and
# "mem".
# There can be a max of 10 processes listed.
# top_mem           type, num     Same as top, except sorted by mem usage
# instead of cpu
# totalup           net           Total upload, this one too, may overflow
# updates                         Number of updates (for debugging)       
# upspeed           net           Upload speed in kilobytes               
# upspeedf          net           Upload speed in kilobytes with one       
# decimal                                 
# upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
# Upload speed graph, colours defined in
# hex, minus the #.
# uptime                          Uptime                                   
# uptime_short                    Uptime in a shorter format               
#
# seti_prog                       Seti@home current progress
# seti_progbar      (height)      Seti@home current progress bar
# seti_credit                     Seti@hoome total user credit

La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

danialbi

ah pero'!!!  ti sei sbattuto eh??
e' venuto bello, complimenti!!!

ora che ce l'hai sul desktop, che sai che te lo sei modellato a piacimento, non sei soddisfatto??
e in piu', ora che hai tutte le info che ti servono sul desktop (tantissime) racchiuse in un file che consuma 1 mb....non e' una figata?

daniodo

Dopo ore di sbattimenti vari, sono giunto alla versione definitiva (almeno per ora  ;D) del mio pc!
L'intero desktop lo posterò nella sezione appropriata.....
Si tratta di 3 conky distinti:
il principale con le informazioni di sistema che mi interessa tenere "sotto controllo", quelle relative alla rete (che sia essa wifi, ethernet ecc.) la batteria (essendo un notebook), posto sulla destra dello schermo;



# conky principale
background yes
use_xft yes
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
cpu_avg_samples 2
net_avg_samples 2
minimum_size 300 0
maximum_width 270
default_color white
default_shade_color black
default_outline_color white
color1 white #bianco
gap_x 10
gap_y 0
TEXT
${image $HOME/weather+clock/images/background1.png -p -10,0 -s 330x520}
${image /home/daniodo/linuxmint.png -p 5,5 -s 60x60}
${voffset -17}${goto 78}${color0}${font Bandung Hardcore GP:size=40}Daniodo
${voffset -40}${goto 84}${color0}${font}Kernel: $sysname-$kernel
${voffset 7}${font Bandung Hardcore GP :size=40}${color white}${goto 85}${time %H}:${color white}${time %M}${font Bandung Hardcore GP :size=30}${color 808080} ${time %S}
${voffset -23}${color #729FCF}${font Zekton Bold:size=9}PROCESSORE & PROCESSI${font} ${color1}$hr
${color0}Core0: ${cpu cpu0}% ${freq_g 0}GHz ${alignr}Core1: ${cpu cpu1}% ${freq_G 1}GHz
${color0}${cpugraph cpu0 25,130 3465A4 78BF39} ${alignr}${cpugraph cpu1 25,130 3465A4 78BF39}
${color0}Processo${alignr}PID      CPU%    MEM%
${color0}${top name 1} ${alignr}${top pid 1}    ${top cpu 1}    ${top mem 1}  
${color0}${top name 2} ${alignr}${top pid 2}    ${top cpu 2}    ${top mem 2}  
${color0}${top name 3} ${alignr}${top pid 3}    ${top cpu 3}    ${top mem 3}  
${color #729FCF}${font Zekton Bold:size=9}MEMORIA${font} ${color1}$hr
${color0}RAM (${memperc}% Use): $mem/$memmax $membar
${color0}Swap (${swapperc}% Use): $swap/$swapmax $swapbar
${voffset 5}${color #729FCF}${font Zekton Bold:size=9}PARTIZIONI${font} ${color1}$hr
${color0}root (${fs_free_perc /}% Free): ${color0}${fs_used /}${color0}/${color0}${fs_size /} ${color0}${fs_bar /}
${color0}home (${fs_free_perc /home}% Free): ${color0}${fs_used /home}${color0}/${color0}${fs_size /home} ${color0}${fs_bar /home}
${voffset 5}${color #729FCF}${font Zekton Bold:size=9}RETE${font} ${color1}$hr
${if_existing /proc/net/route wlan0}
${image /home/daniodo/Wifi.jpg -p 15,346 -s 40x20}
${voffset -25}${goto 75}${color #8c8c8c}Segnale ${color} ${wireless_link_qual_perc wlan0}%${alignr}${color #8c8c8c}IP: ${color}${addr wlan0}
${goto 75}${color #8c8c8c}${wireless_link_bar 5,90 wlan0}${color}${alignr}${color #8c8c8c}${color}${wireless_essid wlan0}${color1}
${voffset 5}${goto 10}${color #729FCF}Down: ${color1}${downspeed wlan0} kB/s ${goto 150}${color #729FCF}Up: ${color1}${upspeed wlan0} KB/s
${downspeedgraph wlan0 25,130 3465A4 78BF39} ${alignr}${upspeedgraph wlan0 25,130 3465A4 78BF39}
${else}${if_existing /proc/net/route eth0}
${voffset -10}${font}   Local Ip: ${alignr}${addr eth0}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed eth0} kB/s ${goto 150}${color3}Up: ${color1}${upspeed eth0} KB/s
${downspeedgraph eth0 25,130 3465A4 78BF39} ${alignr}${upspeedgraph eth0 25,130 3465A4 78BF39}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -10}${font}   Local Ip: ${alignr}${addr eth1}
${voffset 5}${goto 10}${color3}Down: ${color1}${downspeed eth1} kB/s ${goto 150}${color3}Up: ${color1}${upspeed eth1} KB/s
${downspeedgraph eth1 25,130 3465A4 78BF39} ${alignr}${upspeedgraph eth1 25,130 3465A4 78BF39}
${endif}${else}
${font PizzaDude Bullets:size=16}4${font}   Network Unavailable
${endif}
${voffset -15}${color #729FCF}${font Zekton Bold:size=9}BATTERIA - ${color1}${battery_percent BAT1}%${font} - ${battery_time BAT1} $hr
${if_running rhythmbox}${voffset 5}${color #729FCF}${font Zekton Bold:size=9}RHYTHMBOX${font} ${color1}$hr
Artista: ${exec conkyRhythmbox -n --datatype=AR}
Album: ${exec conkyRhythmbox -n --datatype=AL}
Titolo: ${exec conkyRhythmbox -n --datatype=TI}${alignr}${exec conkyRhythmbox -n --datatype=PT} / ${exec conkyRhythmbox -n --datatype=LE}
${execibar 1 conkyRhythmbox -n --datatype=PP}${color}
${else}
${voffset -5}${color #729FCF}${font Zekton Bold:size=9}RHYTHMBOX - ${color1}Non in esecuzione $hr
$endif


quello centrale che riporta le informazioni del meteo;



# -- Conky settings -- #
background yes
update_interval 1
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 300 300
maximum_width 300
alignment tr
gap_x 300
gap_y 0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
use_xft yes
xftfont almonte:size=24
xftalpha 0.4
uppercase no
default_color 8b8b8b
TEXT
${image $HOME/weather+clock/images/background1.png -p 1,10 -s 296x270}
${image $HOME/weather+clock/images/down.png -p 1,290 -s 296x100}
${voffset -70}${alignc}${font ALTEA :size=10}${color yellow}Meteo ${execi 600 conkyForecast --location=ITXX0089 --datatype=CN --refetch}
${voffset 5}${font Helvetica LT Std :size=8}${color whitesmoke}${alignc}${execi 600 conkyForecast --location=ITXX0089 --datatype=CT}
${voffset 60}${goto 20}Vel.: ${execi 600 conkyForecast --location=ITXX0089 --datatype=WS}${alignr}${execi 600 conkyForecast --location=ITXX0089 --datatype=MP}    
${goto 20}Direz.:${execi 600 conkyForecast --location=ITXX0089 --datatype=WD}${alignc}${font Zekton Bold :size=25}${color 707070}${execi 600 conkyForecast --location=ITXX0089 -u --datatype=HT}
${font Helvetica LT Std :size=8}${color whitesmoke}${voffset -20}${goto 40}Precipitazioni: ${execi 600 conkyForecast --location=ITXX0089 --datatype=PC}
${goto 40}Irradiazione UV: ${execi 600 conkyForecast --location=ITXX0089 --datatype=UI} - ${execi 600 conkyForecast --location=ITXX0089 --datatype=UT}
${goto 40}Umidità: ${execi 600 conkyForecast --location=ITXX0089 --datatype=HM}
${goto 40}Punto di Rugiada: ${execi 600 conkyForecast --location=ITXX0089 --datatype=DP}
${goto 40}Alba: ${execi 600 conkyForecast --location=ITXX0089 --datatype=SR} - Tramonto: ${execi 600 conkyForecast --location=ITXX0089 --datatype=SS}
${goto 40}Pressione: ${execi 600 conkyForecast --location=ITXX0089 --datatype=BR} - ${execi 600 conkyForecast --location=ITXX0089 --datatype=BD}
${font Bitstream Vera Sans Mono:size=7}${voffset 10}${color yellow}${goto 67}Aggiornato al: ${execi 600 conkyForecast --location=ITXX0089 --datatype=LU}
${voffset 85}${font Helvetica LT Std :size=8}${color white}${goto 47}${execi 600 conkyForecast --location=ITXX0089 --datatype=HT -u --startday=1}/${color 707070}${execi 600 conkyForecast --location=ITXX0089 --datatype=LT -u --startday=1}${font Helvetica LT Std :size=8}${color white}${goto 110}${execi 600 conkyForecast --location=ITXX0089 --datatype=HT -u --startday=2}/${color 707070}${execi 600 conkyForecast --location=ITXX0089 --datatype=LT -u --startday=2}${font Helvetica LT Std :size=8}${color white}${goto 180}${execi 600 conkyForecast --location=ITXX0089 --datatype=HT -u --startday=3}/${color 707070}${execi 600 conkyForecast --location=ITXX0089 --datatype=LT -u --startday=3}${font Helvetica LT Std :size=8}${color white}${goto 250}${execi 600 conkyForecast --location=ITXX0089 --datatype=HT -u --startday=4}/${color 707070}${execi 600 conkyForecast --location=ITXX0089 --datatype=LT -u --startday=4}
${voffset 0}${font Helvetica LT Std :size=8}${color 707070}${goto 55}${execi 600 conkyForecast --location=ITXX0089 --datatype=DW --shortweekday --startday=1}${font Helvetica LT Std :size=8}${color 707070}${goto 115}${execi 600 conkyForecast --location=ITXX0089 --datatype=DW --shortweekday --startday=2}${font Helvetica LT Std :size=8}${color 707070}${goto 185}${execi 600 conkyForecast --location=ITXX0089 --datatype=DW --shortweekday --startday=3}${font Helvetica LT Std :size=8}${color 707070}${goto 255}${execi 600 conkyForecast --location=ITXX0089 --datatype=DW --shortweekday --startday=4}
${execpi 600 conkyForecast --location=ITXX0089 --template=$HOME/weather+clock/vreme.template}


il file di configurazione che vedete nell'ultima riga (vreme.template) è riportato qui appresso:
${image [--datatype=WI] -p 110,45 -s 100x100} #METEO
${image [--datatype=MI] -p 220,65 -s 43x43} #LUNA
${image [--datatype=BI] -p 25,65 -s 50x50} #VENTO
${image [--datatype=WI --startday=1] -p 25,285 -s 60x60}
${image [--datatype=WI --startday=2] -p 90,285 -s 60x60}
${image [--datatype=WI --startday=3] -p 160,285 -s 60x60}
${image [--datatype=WI --startday=4] -p 225,285 -s 60x60}


quello sulla sinistra (in alto) relativo al calendario ed una "chicchetta" che riporta randomicamente delle citazioni prese da "fortune".



# — SETTINGS — #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 1
border_outer_margin 1
minimum_size 500
maximum_width 565
alignment tl
gap_x 180
gap_y 10
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_shade_color 252525
use_xft yes
xftfont Dejavu Sans Mono:size=7
xftalpha 1.0
uppercase no
override_utf8_locale yes
default_color 909090
TEXT
${voffset 0}${font Bandung Hardcore GP:size=20}${alignc}${time %e %B %Y}
${voffset -25}${font Ragey:size=12}${time %A}${font}
$hr
${execpi 5000 /home/daniodo/.horiz_cal.sh}
${execpi 120 fortune}


L'avvio dei 3 conky è consentito da questo scriptino inserito in Menù -> Preferenze -> Applicazioni d'avvio

#!/bin/bash

test -z `pgrep conky` || killall -9 conky
sleep 20
conky -d -c /home/daniodo/.conkyrc
sleep 5
conky -d -c /home/daniodo/.conkycalendario
sleep 5
conky -d -c /home/daniodo/.conkymeteo
exit


...mentre lo script per il calendario orizzontale di cui sopra, è questo:

#!/bin/bash
# horizontal calendar for conky by ans
# Updated by: mobilediesel, dk75, Bruce, Crinos512, et al.
# locale depend week day names
lang=$1
case ${lang:=$LANG} in
       
       it*  ) Sun="Do";   Mon="Lu";   Tue="Ma";   Wed="Me";   Thu="Gi";   Fri="Ve";   Sat="Sa" ;;   # Italian (Italiano)
       
esac

COLOROLD="a0a0a0" #MidSlateGrey
COLORTODAY="red" #Darkorange
COLORREST="a0a0a0" #MidSlateGrey
COLORNEXT="c0c0c0" #LightSlateGrey

TODAY=$(date +%d)
LASTDAY=$(date -d "-$TODAY days +1 month" +%d)
FIRSTDAY=$(date -d "-$[${TODAY/#0/}-1] days" +%u)
TODAYC="\${color $COLORTODAY} $TODAY\${color}"

# Build $TOPLINE
j=31
k=$FIRSTDAY
while [ $j -gt 0 ]; do
 case "$k" in
   1) TOPLINE="$TOPLINE $Mon";;
   2) TOPLINE="$TOPLINE $Tue";;
   3) TOPLINE="$TOPLINE $Wed";;
   4) TOPLINE="$TOPLINE $Thu";;
   5) TOPLINE="$TOPLINE $Fri";;
   6) TOPLINE="$TOPLINE \${color white}$Sat\${color}";;
   7) TOPLINE="$TOPLINE \${color white}$Sun\${color}"
      k=0
      ;;
 esac
 j=$[$j-1]
 k=$[$k+1]
done

# Build $OVER
i=1
OVER="\${color $COLOROLD}"
while [ $i -lt $TODAY ]; do
 case $i in
   [1-9])   OVER="$OVER 0$i" ;;
   *)       OVER="$OVER $i"  ;;
 esac
 i=$[$i+1]
done
OVER="$OVER\${color}"

# skip i where value of i=$TODAY
i=$[$i+1]

# Build $REST
REST="\${color $COLORREST}"
while [ $i -le $LASTDAY ]; do
 case $i in
   [1-9])   REST="$REST 0$i" ;;
   *)       REST="$REST $i"  ;;
 esac
 i=$[$i+1]
done
REST="$REST\${color}"

# Build $NEXTMONTH
i=$LASTDAY
j=1
NEXTMONTH=""
if [ $i -ne 31 ] ; then
 NEXTMONTH="\${color $COLORNEXT}"
 while [ $i -lt 31 ] ; do
    NEXTMONTH="$NEXTMONTH 0$j"
    i=$[$i+1]
    j=$[$j+1]
 done
 NEXTMONTH="$NEXTMONTH\${color}"
fi


echo "$OVER$TODAYC$REST$NEXTMONTH\${tab 20}"
echo "$TOPLINE\${tab 20}"


:ciao:
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

daniodo

La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

Erika

Ciao Daniodo

ma ma è spettacolare, specialmente il meteo

inizio OT]
allora io copio la sezione meteo
nello script lancio solo il conkymeteo

io lo ho messo in /home/erika/my_Test/.conkymeteo


#!/bin/bash

test -z `pgrep conky` || killall -9 conky
sleep 20
conky -d -c /home/erika/my_Test/.conkymeteo
exit


e non mi va nulla  :imba:
mi manca il conky e qualcosa

cosa devo installare, se non chiedo molto  :imba:

fine OT]

Erika
Asked, travolgente
spesso il problema non è dove lo si cerca, I'm happy mind

daniodo

Ciao Erika, mi fa piacere che apprezzi  :)

Prima di tutto: hai installato sia il pacchetto conky che conky.all?
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

Erika

Citazione di: daniodo il Lunedì 06 Dicembre 2010, 19:37:43
Ciao Erika, mi fa piacere che apprezzi  :)

Prima di tutto: hai installato sia il pacchetto conky che conky.all?

ciao Daniodo

dopo avere installato conky e conky.all, funziona, grazie mille

inizio OT]
per il meteo mi piacerebbe avere una zona almeno vicino dove risiedo, ho impostato Bologna come codice e va bene, Modena non lo trova  :imba:
fine OT]

Erika
Asked, travolgente
spesso il problema non è dove lo si cerca, I'm happy mind