Posta il tuo .conkyrc & png ""Leggete in 1°Pagina conkyForecast""

Il ritrovo della comunità dove confrontarsi e discutere sulle notizie dal mondo dell'informatica, di Ubuntu e di tutto quello che la riguarda, novità, pettegolezzi e quant'altro.
Avatar utente
Diabolik62
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 16046
Iscrizione: domenica 20 dicembre 2009, 16:29
Distribuzione: wind 10049 archfce4.12

Re: Posta il tuo .conkyrc & png

Messaggio da Diabolik62 »

grazie (b2b)
Avatar utente
Seraphan
Prode Principiante
Messaggi: 7
Iscrizione: mercoledì 28 luglio 2010, 21:17

Re: Posta il tuo .conkyrc & png

Messaggio da Seraphan »

alecive ha scritto:
Seraphan ha scritto: Vai con il mio conky!!!  ;D

Immagine
Splendido!
Grazie  ;D
alecive ha scritto: Una sola nota: togli l'iconcina di ff da awn, rimane male! :D
Ma intendi che devo postare un'altra stampscreen senza il logo di firefox o cambiare le impostazioni di AWN per toglierlo definitivamente? Perchè quest'ultima cosa non so come si fa...  :-\
Avatar utente
alecive
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1886
Iscrizione: venerdì 12 dicembre 2008, 14:09
Desktop: gnome-shell o unity
Distribuzione: Ubuntu 12.04
Località: Sestri Levante
Contatti:

Re: Posta il tuo .conkyrc & png

Messaggio da alecive »

Dock Preferences -> Task Manager -> Use Best Quality Icons
La follia è come la gravità. Basta una piccola spinta.                              AwOken Iconset - Rilasciata la  2.4!! (c'è anche il ppa [lucid-maverick-natty-oneiric-precise]!)
Avatar utente
Seraphan
Prode Principiante
Messaggi: 7
Iscrizione: mercoledì 28 luglio 2010, 21:17

Re: Posta il tuo .conkyrc & png

Messaggio da Seraphan »

alecive ha scritto: Dock Preferences -> Task Manager -> Use Best Quality Icons
Grande funziona!  (b2b)
Avatar utente
alecive
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1886
Iscrizione: venerdì 12 dicembre 2008, 14:09
Desktop: gnome-shell o unity
Distribuzione: Ubuntu 12.04
Località: Sestri Levante
Contatti:

Re: Posta il tuo .conkyrc & png

Messaggio da alecive »

Ho una domanda di base (posto qui per non aprire un inutile thread e perchè mi è venuta in mente facendo un conky): ho un computer con una intel i5 450M installata sopra. Sono certo del fatto che sia una double core con la funzionalità "Multi Threading" che fa in modo che ogni core gestisca 2 thread (facendo finta quindi di avere installata una quad core).

Se vado in gnome-system-monitor, e se metto l'opzione in conky, questi due mi vedono 4 cpu!!
Possibile che il sistema operativo sia così babbo da non accorgersi della fregatura? :D

Altra domanda: non riesco a cambiare il colore e le dimensioni della ${battery_bar}..come fare?

Thanks!
Seraphan ha scritto:
alecive ha scritto: Dock Preferences -> Task Manager -> Use Best Quality Icons
Grande funziona!  (b2b)
De nada! (b2b)
La follia è come la gravità. Basta una piccola spinta.                              AwOken Iconset - Rilasciata la  2.4!! (c'è anche il ppa [lucid-maverick-natty-oneiric-precise]!)
deegan
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2639
Iscrizione: lunedì 28 aprile 2008, 12:42
Distribuzione: Ubuntu 20.04
Sesso: Maschile
Località: Varese

Re: Posta il tuo .conkyrc & png

Messaggio da deegan »

.............. (b2b)
Immagine

=============

Immagine 
MB* ASUS TUF Gaming Z690 SV* EVGA RTX 3080 Ti CPU* i7-12700K
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
kar
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 607
Iscrizione: domenica 15 ottobre 2006, 22:55

Re: Posta il tuo .conkyrc & png

Messaggio da kar »

Seraphan ha scritto: Vai con il mio conky!!!  ;D

Immagine

.conkyrc1

Codice: Seleziona tutto

# Use Xft?
use_xft yes
xftfont URW Gothic L:pixelsize=12:bold
xftalpha 1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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 400
maximum_width 400

# 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_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color 777675
color1 c8ff00 #verde
color2 ffc800 #arancio
color3 6093c2 #azzurro
color4 0096ff #azzurro2

# 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 20
gap_y 40

# 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

TEXT
${voffset 100}
${goto 72}${color3}${font URW Gothic L:pixelsize=16:bold}ORA E DATA${font}${color}

${goto 60}${font URW Gothic L:pixelsize=30:bold}${time %H:%M.%S}${font}

${goto 72}${time %a %d %b %Y}
${goto 264}${color3}${font URW Gothic L:pixelsize=16:bold}SISTEMA${font}${color}

${goto 225}$nodename - $sysname
${goto 215}$kernel on $machine

${goto 230}Acceso da: ${uptime}
${goto 70}${color3}${font URW Gothic L:pixelsize=16:bold}PROCESSORE${font}${color}
${goto 65}CPU1 ${freq_g cpu1}GHz - ${cpu cpu1}%
${goto 70}${cpubar cpu1 4,100}
${goto 65}CPU2 ${freq_g cpu2}GHz - ${cpu cpu2}%
${goto 70}${cpubar cpu2 4,100}
${goto 65}CPU3 ${freq_g cpu3}GHz - ${cpu cpu3}%
${goto 70}${cpubar cpu3 4,100}${goto 258}${color3}${font URW Gothic L:pixelsize=16:bold}MEMORIA${font}${color}
${goto 65}CPU4 ${freq_g cpu4}GHz - ${cpu cpu4}%${goto 230}RAM - ${mem} / ${memmax}
${goto 70}${cpubar cpu4 4,100}${goto 250}$memperc%  ${membar 4,80}
${goto 250}HARD DISK 500GIB
${goto 223}Ubuntu - ${fs_used /} / ${fs_size /}
${goto 250}${fs_used_perc /}%  ${fs_bar 4,80 /}
${goto 70}${color3}${font URW Gothic L:pixelsize=16:bold}TEMPERATURE${font}${color}${goto 227}Vista - ${fs_used /media/AC7025AD70257F68} / ${fs_size /media/AC7025AD70257F68}
${goto 245}${fs_used_perc /media/AC7025AD70257F68}%  ${fs_bar 4,80 /media/AC7025AD70257F68}
${goto 55}Processore${goto 155}${acpitemp}°C
${goto 55}MotherBoard${goto 155}${execi 300 sensors | grep temp1 | cut -c15-16 ;}°C
${goto 55}Hard Disk${goto 155}${execi 4 sensors | grep -A 0 'temp1' | cut -c15-18} °C
${goto 55}Scheda Grafica${goto 155}${execi 30 nvidia-settings -q gpucoretemp | grep '):' | awk '{print $4}' | sed 's/\.//'}°C${goto 275}${color3}${font URW Gothic L:pixelsize=16:bold}RETE${font}${color}
${goto 245}Segnale WIFI ${wireless_link_qual wlan0}%
${goto 245}${wireless_link_bar 4,100 wlan0}
${goto 225}UpLoad (TOT : ${totalup wlan0})
${goto 230}${upspeed wlan0}${goto 290}${upspeedgraph wlan0 4,70 000000 000000}
${goto 225}DownLoad (TOT : ${totaldown wlan0})
${goto 230}${downspeed wlan0}${goto 290}${downspeedgraph wlan0 4,70 000000 000000}

${goto 245}IP : ${addr wlan0}
${image ~/.conkytheme/theme2/conky_system.png -p 176,0 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 0,102 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 176,204 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 0,306 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 176,408 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 0,510 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 176,612 -s 230x200}
${image ~/.conkytheme/theme2/conky_seraphan.png -p 0,714 -s 230x200}
.conkyrc2

Codice: Seleziona tutto

# Use Xft?
use_xft yes
xftfont URW Gothic L:pixelsize=10:bold
xftalpha 1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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 800
maximum_width 800

# 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_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color a9a8a7
color1 c8ff00 #verde
color2 ffc800 #arancio
color3 6093c2 #azzurro
color4 0096ff #azzurro2

# Text alignment, other possible values are commented
alignment top_middle
#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 20
gap_y 40

# 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

TEXT
${voffset 260}${goto 50}CARICO CPU${goto 170}CPU%${goto 650}CARICO RAM${goto 770}RAM%
${goto 50}${top name 1}${goto 165}${top cpu 1}%${goto 650}${top_mem name 1}${goto 765}${top_mem mem 1}%
${goto 50}${top name 2}${goto 165}${top cpu 1}%${goto 650}${top_mem name 2}${goto 765}${top_mem mem 2}%
${goto 50}${top name 3}${goto 165}${top cpu 1}%${goto 650}${top_mem name 3}${goto 765}${top_mem mem 3}%
${goto 50}${top name 4}${goto 165}${top cpu 1}%${goto 650}${top_mem name 4}${goto 765}${top_mem mem 4}%
${goto 50}${top name 5}${goto 165}${top cpu 1}%${goto 650}${top_mem name 5}${goto 765}${top_mem mem 5}%
Salve. Mi piace molto.
Potrei avere una guida su come/cosa installare per ottenere tutto questo ?
Grazie
deegan
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2639
Iscrizione: lunedì 28 aprile 2008, 12:42
Distribuzione: Ubuntu 20.04
Sesso: Maschile
Località: Varese

Re: Posta il tuo .conkyrc & png

Messaggio da deegan »

#kar

Se leggi "qualche pagina indietro troverai la soluzione  ;D "

1-- Installi conky:

Codice: Seleziona tutto

sudo apt-get install conky
2-- Crei nella tua home un nuovo documento di testo, e lo rinomini  (occhio al punto davanti)  ;)

3--Ci incolli dentro ciò che vuoi:
ES

Codice: Seleziona tutto

# Use Xft?
use_xft yes
xftfont URW Gothic L:pixelsize=12:bold
xftalpha 1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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 400
maximum_width 400

# 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_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color 777675
color1 c8ff00 #verde
color2 ffc800 #arancio
color3 6093c2 #azzurro
color4 0096ff #azzurro2

# 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 20
gap_y 40

# 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

TEXT
${goto 60}${font URW Gothic L:pixelsize=30:bold}${time %H:%M.%S}${font}

${time %a %d %b %Y}
${font URW Gothic L:pixelsize=16:bold}SISTEMA${font}${color}
}$nodename - $sysname}$kernel on $machine

Acceso da: ${uptime}
${goto 70}${color3}${font URW Gothic L:pixelsize=16:bold}PROCESSORE${font}${color}
${goto 65}CPU1 ${freq_g cpu1}GHz - ${cpu cpu1}%
${goto 70}${cpubar cpu1 4,100}
$memperc%  ${membar 4,80}

${goto 223}Ubuntu - ${fs_used /} / ${fs_size /}
${goto 250}${fs_used_perc /}%  ${fs_bar 4,80 /}

CARICO CPU  CPU%  CARICO RAM RAM%
${top name 1}${goto 165}${top cpu 1}%  ${top_mem name 1}  ${top_mem mem 1}%
${top name 2}${goto 165}${top cpu 1}%  ${top_mem name 2}  ${top_mem mem 2}%
${top name 3}${goto 165}${top cpu 1}%  ${top_mem name 3}  ${top_mem mem 3}%
${top name 4}${goto 165}${top cpu 1}%  ${top_mem name 4}  ${top_mem mem 4}%
${top name 5}${goto 165}${top cpu 1}%  ${top_mem name 5}  ${top_mem mem 5}%
Salvi e esci.
Poi apri il terminale, e digiti conky dai invio, e il gioco è fatto......................
MB* ASUS TUF Gaming Z690 SV* EVGA RTX 3080 Ti CPU* i7-12700K
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
Avatar utente
fango
Prode Principiante
Messaggi: 40
Iscrizione: domenica 1 novembre 2009, 22:52

Re: Posta il tuo .conkyrc & png

Messaggio da fango »

ieri ho avuto un notebook un po vecchiotto fra le mani,non resistendo l'ho subito piallato,installando la netbook di ubuntu,bellissima.
gli ho creato il conky per le temperature e il terminale mi da una risposta che non capisco,quando vado a cercare il sensore per la cpu.
adesso non sono sul portatile,più tardi vi posto la risposta del terminale,spero che mi aiuterete come sempre.
Avatar utente
DaNieL85
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 300
Iscrizione: sabato 2 febbraio 2008, 12:18

Re: Posta il tuo .conkyrc & png

Messaggio da DaNieL85 »

Seraphan ha scritto: Vai con il mio conky!!!  ;D

Immagine

.conkyrc1

Codice: Seleziona tutto

# Use Xft?
use_xft yes
xftfont URW Gothic L:pixelsize=12:bold
xftalpha 1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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 400
maximum_width 400

# 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_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color 777675
color1 c8ff00 #verde
color2 ffc800 #arancio
color3 6093c2 #azzurro
color4 0096ff #azzurro2

# 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 20
gap_y 40

# 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

TEXT
${voffset 100}
${goto 72}${color3}${font URW Gothic L:pixelsize=16:bold}ORA E DATA${font}${color}

${goto 60}${font URW Gothic L:pixelsize=30:bold}${time %H:%M.%S}${font}

${goto 72}${time %a %d %b %Y}
${goto 264}${color3}${font URW Gothic L:pixelsize=16:bold}SISTEMA${font}${color}

${goto 225}$nodename - $sysname
${goto 215}$kernel on $machine

${goto 230}Acceso da: ${uptime}
${goto 70}${color3}${font URW Gothic L:pixelsize=16:bold}PROCESSORE${font}${color}
${goto 65}CPU1 ${freq_g cpu1}GHz - ${cpu cpu1}%
${goto 70}${cpubar cpu1 4,100}
${goto 65}CPU2 ${freq_g cpu2}GHz - ${cpu cpu2}%
${goto 70}${cpubar cpu2 4,100}
${goto 65}CPU3 ${freq_g cpu3}GHz - ${cpu cpu3}%
${goto 70}${cpubar cpu3 4,100}${goto 258}${color3}${font URW Gothic L:pixelsize=16:bold}MEMORIA${font}${color}
${goto 65}CPU4 ${freq_g cpu4}GHz - ${cpu cpu4}%${goto 230}RAM - ${mem} / ${memmax}
${goto 70}${cpubar cpu4 4,100}${goto 250}$memperc%  ${membar 4,80}
${goto 250}HARD DISK 500GIB
${goto 223}Ubuntu - ${fs_used /} / ${fs_size /}
${goto 250}${fs_used_perc /}%  ${fs_bar 4,80 /}
${goto 70}${color3}${font URW Gothic L:pixelsize=16:bold}TEMPERATURE${font}${color}${goto 227}Vista - ${fs_used /media/AC7025AD70257F68} / ${fs_size /media/AC7025AD70257F68}
${goto 245}${fs_used_perc /media/AC7025AD70257F68}%  ${fs_bar 4,80 /media/AC7025AD70257F68}
${goto 55}Processore${goto 155}${acpitemp}°C
${goto 55}MotherBoard${goto 155}${execi 300 sensors | grep temp1 | cut -c15-16 ;}°C
${goto 55}Hard Disk${goto 155}${execi 4 sensors | grep -A 0 'temp1' | cut -c15-18} °C
${goto 55}Scheda Grafica${goto 155}${execi 30 nvidia-settings -q gpucoretemp | grep '):' | awk '{print $4}' | sed 's/\.//'}°C${goto 275}${color3}${font URW Gothic L:pixelsize=16:bold}RETE${font}${color}
${goto 245}Segnale WIFI ${wireless_link_qual wlan0}%
${goto 245}${wireless_link_bar 4,100 wlan0}
${goto 225}UpLoad (TOT : ${totalup wlan0})
${goto 230}${upspeed wlan0}${goto 290}${upspeedgraph wlan0 4,70 000000 000000}
${goto 225}DownLoad (TOT : ${totaldown wlan0})
${goto 230}${downspeed wlan0}${goto 290}${downspeedgraph wlan0 4,70 000000 000000}

${goto 245}IP : ${addr wlan0}
${image ~/.conkytheme/theme2/conky_system.png -p 176,0 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 0,102 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 176,204 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 0,306 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 176,408 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 0,510 -s 230x200}
${image ~/.conkytheme/theme2/conky_wall.png -p 176,612 -s 230x200}
${image ~/.conkytheme/theme2/conky_seraphan.png -p 0,714 -s 230x200}
.conkyrc2

Codice: Seleziona tutto

# Use Xft?
use_xft yes
xftfont URW Gothic L:pixelsize=10:bold
xftalpha 1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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 800
maximum_width 800

# 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_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color a9a8a7
color1 c8ff00 #verde
color2 ffc800 #arancio
color3 6093c2 #azzurro
color4 0096ff #azzurro2

# Text alignment, other possible values are commented
alignment top_middle
#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 20
gap_y 40

# 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

TEXT
${voffset 260}${goto 50}CARICO CPU${goto 170}CPU%${goto 650}CARICO RAM${goto 770}RAM%
${goto 50}${top name 1}${goto 165}${top cpu 1}%${goto 650}${top_mem name 1}${goto 765}${top_mem mem 1}%
${goto 50}${top name 2}${goto 165}${top cpu 1}%${goto 650}${top_mem name 2}${goto 765}${top_mem mem 2}%
${goto 50}${top name 3}${goto 165}${top cpu 1}%${goto 650}${top_mem name 3}${goto 765}${top_mem mem 3}%
${goto 50}${top name 4}${goto 165}${top cpu 1}%${goto 650}${top_mem name 4}${goto 765}${top_mem mem 4}%
${goto 50}${top name 5}${goto 165}${top cpu 1}%${goto 650}${top_mem name 5}${goto 765}${top_mem mem 5}%
è un capolavoro!!!!!
You HAVE to assume your visitor is a maniac serial killer, out to destroy your application. And you have to prevent it.
Avatar utente
SuNjACk
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1061
Iscrizione: martedì 19 maggio 2009, 16:27
Località: Pesaro

Re: Posta il tuo .conkyrc & png

Messaggio da SuNjACk »

Immagine

Codice: Seleziona tutto

# — Conky settings — #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

# — Window specifications — #

own_window yes
own_window_type desktop
own_window_transparent yes
own_window_colour grey20
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
own_window_argb_visual no

border_inner_margin 0
border_outer_margin 0

minimum_size 800
maximum_width 800

alignment br
gap_x 10
gap_y 2

# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont mintsmild:size=7
xftalpha 1

uppercase no

default_color 4FF2D8
default_shade_color bfbfbf
# — Lua Load — #
lua_load /home/sunny/.rings/rings-v1.2.lua
lua_draw_hook_pre ring_stats

#color1 2BBCFF #battery
#color2 42FF30 #memory
#color3 D94600 #cpu
#color4 74C2B7 #disk

TEXT
${voffset  2}${goto 430}${mpd_length} ${goto 490}CPU${goto 570}${upspeed ppp0}
${voffset -2} CPU${goto 34}${cpu cpu0}${goto 81}RAM${goto 114}${memperc}${goto 153}DISK${goto 188}${fs_used_perc /}${goto 233}BAT${goto 261}${battery_percent}${goto 315}VOL  ${texeci 1 amixer get Master | awk '/Front Left:/ {print $5}' | tr -d '[]%'}${goto 425}MPD${goto 487}TEMP${goto 555}NET${goto 620}${time %a %d %b} ${voffset -10}${font Xirod:size=18}${alignr}${time %H:%M}${font}
${voffset -7}${goto 430}${mpd_elapsed}${goto 490}${acpitemp}C°${goto 570}${downspeed ppp0}  ${voffset -16} 

Codice: Seleziona tutto

--[[
Ring Meters by londonali1010 (2009)

This script draws percentage meters as rings. It is fully customisable; all options are described in the script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
	lua_load ~/scripts/rings-v1.2.lua
	lua_draw_hook_pre ring_stats
	
Changelog:
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)
]]

settings_table = {
	{
		name='cpu',
		arg='cpu0',
		max=100,
		bg_colour=0x143633,
		bg_alpha=1,
		fg_colour=0x4FF2D8,
		fg_alpha=1.0,
		x=44, y=17,
		radius=11,
		thickness=4,
		start_angle=-45,
		end_angle=225
	},
	{
		name='battery_percent',
		arg='BAT0',
		max=100,
		bg_colour=0x143633,
		bg_alpha=1,
		fg_colour=0x4FF2D8,
		fg_alpha=1.0,
		x=272, y=17,
		radius=11,
		thickness=4,
		start_angle=-45,
		end_angle=225
	},
	{
		name='memperc',
		arg='',
		max=100,
		bg_colour=0x143633,
		bg_alpha=1,
		fg_colour=0x4FF2D8,
		fg_alpha=1.0,
		x=122, y=17,
		radius=11,
		thickness=4,
		start_angle=-45,
		end_angle=225
	},
	{
		name='fs_used_perc',
		arg='/',
		max=100,
		bg_colour=0x143633,
		bg_alpha=1,
		fg_colour=0x4FF2D8,
		fg_alpha=1.0,
		x=199, y=17,
		radius=11,
		thickness=4,
		start_angle=-45,
		end_angle=225
	},
	{
		name='mixer',
		arg='Master',
		max=100,
		bg_colour=0x143633,
		bg_alpha=1,
		fg_colour=0x4FF2D8,
		fg_alpha=1.0,
		x=357, y=17,
		radius=11,
		thickness=4,
		start_angle=-45,
		end_angle=225
	},
	{
		name='mpd_percent',
		arg='',
		max=100,
		bg_colour=0x143633,
		bg_alpha=1,
		fg_colour=0x4FF2D8,
		fg_alpha=1.0,
		x=427, y=17,
		radius=11,
		thickness=4,
		start_angle=-180,
		end_angle=0
	},
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
	local w,h=conky_window.width,conky_window.height
	
	local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
	local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

	local angle_0=sa*(2*math.pi/360)-math.pi/2
	local angle_f=ea*(2*math.pi/360)-math.pi/2
	local t_arc=t*(angle_f-angle_0)

	-- Draw background ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
	cairo_set_line_width(cr,ring_w)
	cairo_stroke(cr)
	
	-- Draw indicator ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
	cairo_stroke(cr)		
end

function conky_ring_stats()
	local function setup_rings(cr,pt)
		local str=''
		local value=0
		
		str=string.format('${%s %s}',pt['name'],pt['arg'])
		str=conky_parse(str)
		
		value=tonumber(str)
		pct=value/pt['max']
		
		draw_ring(cr,pct,pt)
	end

	if conky_window==nil then return end
	local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
	
	local cr=cairo_create(cs)	
	
	local updates=conky_parse('${updates}')
	update_num=tonumber(updates)
	
--	if update_num>5 then
		for i in pairs(settings_table) do
			setup_rings(cr,settings_table[i])
		end
--	end
end
Desktop openbox Halloween Documents Linux non è Windows
Free Software Is A Matter Of Liberty Not Price
kar
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 607
Iscrizione: domenica 15 ottobre 2006, 22:55

Re: Posta il tuo .conkyrc & png

Messaggio da kar »

Avrei bisogno proprio del vostro aiuto !!!  >:( >:( >:(
Alla fine vorrei solo cercare di visualizzare le condizioni meteo con un conky
ed essendo una "capra" ho cercato (malamente) di creare un conkyrc che facesse questo. rima ho installato conckyforecast, ho reso eseguibile il file conckyforecast.py poi ho "scopiazzato varie linee di codice ed ecco il file che ho ottenuto ....

Codice: Seleziona tutto

background yes
use_xft yes
xftfont Ubuntu-Title:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 150 5
maximum_width 150
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
#stippled_borders 8
# border margins
border_margin 10
#border_width 5
default_color white
default_shade_color black
default_outline_color white
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#gap_x 450
#gap_y 1
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
TEXT


$alignc${color 8c8c8c}oggi${color} ${voffset -3}${font Weather:size=16}${execi 21600 python /home/kar/Conky/scripts/conkyForecast.py --location=ITXX0260 --datatype=WF --startday=0}${font} ${voffset -7}${color 8c8c8c}temp max ${color} ${color FF3600}${execi 21600 python /home/kar/Conky/scripts/conkyForecast.py --location=ITXX0260 --datatype=HT --startday=0}${color} ${color 8c8c8c}/ temp min ${color} ${color FF7E00}${execi 21600 python /home/kar/Conky/scripts/conkyForecast.py --location=ITXX0260 --datatype=LT --startday=0}${color}

$alignc${voffset -2}${color 8c8c8c}domani${color} ${voffset -5}${font Weather:size=16}${execi 21600 python /home/kar/Conky/scripts/conkyForecast.py –location=ITXX0260 –datatype=WF –startday=1}${font} ${voffset -5}${color 8c8c8c}temp max ${color} ${color FF3600}${execi 21600 python /home/kar/Conky/scripts/conkyForecast.py –location=ITXX0260 –datatype=HT –startday=1}${color} ${color 8c8c8c}/ temp min ${color}${color FF7E00} ${execi 21600 python /home/kar/Conky/scripts/conkyForecast.py –location=ITXX0260 –datatype=LT –startday=1}${color}
con i RELATIVI ERRORI  >:( >:(

Codice: Seleziona tutto

kar@kar-laptop:~$ conky 
Conky: /home/kar/.conkyrc: 20: no such configuration: 'border_margin'
Conky: use_spacer should have an argument of left, right, or none.  'no' seems to be some form of 'false', so defaulting to none.
Conky: forked to background, pid is 5431
kar@kar-laptop:~$ 
Conky: desktop window (e000aa) is subwindow of root window (112)
Conky: window type - normal
Conky: drawing to created window (0x3800001)
Conky: drawing to double buffer
Traceback (most recent call last):
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1292, in <module>
    weather.outputData()
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1265, in outputData
    output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.hideunits,self.options.spaces)
  File "/home/kar/Conky/scripts/conkyForecast.py", line 658, in getOutputText
    string = self.current_conditions[0].high
IndexError: list index out of range
^C
kar@kar-laptop:~$ Traceback (most recent call last):
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1292, in <module>
    weather.outputData()
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1265, in outputData
    output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.hideunits,self.options.spaces)
  File "/home/kar/Conky/scripts/conkyForecast.py", line 658, in getOutputText
    string = self.current_conditions[0].high
IndexError: list index out of range
^C
kar@kar-laptop:~$ ^C
kar@kar-laptop:~$ killall conkyTraceback (most recent call last):
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1292, in <module>
    weather.outputData()
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1265, in outputData
    output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.hideunits,self.options.spaces)
  File "/home/kar/Conky/scripts/conkyForecast.py", line 658, in getOutputText
    string = self.current_conditions[0].high
IndexError: list index out of range
killall conky
Conky: received SIGINT or SIGTERM to terminate. bye!
kar@kar-laptop:~$ cls
No command 'cls' found, but there are 19 similar ones
cls: command not found
kar@kar-laptop:~$ clear

kar@kar-laptop:~$ conky 
Conky: /home/kar/.conkyrc: 20: no such configuration: 'border_margin'
Conky: use_spacer should have an argument of left, right, or none.  'no' seems to be some form of 'false', so defaulting to none.
Conky: forked to background, pid is 5449
kar@kar-laptop:~$ 
Conky: desktop window (e000aa) is subwindow of root window (112)
Conky: window type - normal
Conky: drawing to created window (0x3800001)
Conky: drawing to double buffer
Traceback (most recent call last):
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1292, in <module>
    weather.outputData()
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1265, in outputData
    output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.hideunits,self.options.spaces)
  File "/home/kar/Conky/scripts/conkyForecast.py", line 658, in getOutputText
    string = self.current_conditions[0].high
IndexError: list index out of range
Traceback (most recent call last):
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1292, in <module>
    weather.outputData()
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1265, in outputData
    output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.hideunits,self.options.spaces)
  File "/home/kar/Conky/scripts/conkyForecast.py", line 658, in getOutputText
    string = self.current_conditions[0].high
IndexError: list index out of range
^C
kar@kar-laptop:~$ Traceback (most recent call last):
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1292, in <module>
    weather.outputData()
  File "/home/kar/Conky/scripts/conkyForecast.py", line 1265, in outputData
    output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.hideunits,self.options.spaces)
  File "/home/kar/Conky/scripts/conkyForecast.py", line 658, in getOutputText
    string = self.current_conditions[0].high
IndexError: list index out of range
Spero che qualcuno possa aiutarmi a risolvere almeno questo primo problema, poi pian piano ......

Grazie
Ultima modifica di kar il lunedì 16 agosto 2010, 11:55, modificato 1 volta in totale.
Avatar utente
SuNjACk
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1061
Iscrizione: martedì 19 maggio 2009, 16:27
Località: Pesaro

Re: Posta il tuo .conkyrc & png

Messaggio da SuNjACk »

se non usi i tag code non ti aiuto ;D
Desktop openbox Halloween Documents Linux non è Windows
Free Software Is A Matter Of Liberty Not Price
Avatar utente
centoventicinque
Prode Principiante
Messaggi: 145
Iscrizione: martedì 31 luglio 2007, 11:33
Località: deruta-perugia-umbria

Re: Posta il tuo .conkyrc & png

Messaggio da centoventicinque »

figata, voglio imparare a gestirmelo bene :)
Avatar utente
fango
Prode Principiante
Messaggi: 40
Iscrizione: domenica 1 novembre 2009, 22:52

Re: Posta il tuo .conkyrc & png

Messaggio da fango »

ragazzi vi posto quello che mi da il terminale per il mio sensore,spero che riusciate ad aiutarmi.

Codice: Seleziona tutto

Do you want to probe the I2C/SMBus adapters now? (YES/no): y
Using driver `i2c-sis96x' for device 0000:00:02.1: Silicon Integrated Systems SMBus Controller
Module i2c-dev loaded successfully.

Next adapter: SiS96x SMBus adapter at 0x8100 (i2c-0)
Do you want to scan it? (YES/no/selectively): y
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'...                                No
Client found at address 0x51
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)

Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `k8temp' (autoloaded):
  * Chip `AMD K8 thermal sensors' (confidence: 9)

No modules to load, skipping modules configuration.

Unloading i2c-dev... OK
 
kar
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 607
Iscrizione: domenica 15 ottobre 2006, 22:55

Re: Posta il tuo .conkyrc & png

Messaggio da kar »

SuNjACk ha scritto: se non usi i tag code non ti aiuto ;D
E gia' sapere come inviare un messaggio usando i tag code sarebbe il primo aiuto  ;)
Avatar utente
fango
Prode Principiante
Messaggi: 40
Iscrizione: domenica 1 novembre 2009, 22:52

Re: Posta il tuo .conkyrc & png

Messaggio da fango »

c'è il pulsante cancelletto per quello.
allora per il tuo meteo vediamo,hai fatto registrazione,settato il forecast config nella home?
Avatar utente
DaNieL85
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 300
Iscrizione: sabato 2 febbraio 2008, 12:18

Re: Posta il tuo .conkyrc & png

Messaggio da DaNieL85 »

Qualche piccola modifica al conky (ma soppratutto allo sfondo, il primo fatto con le mie manine :-[):

Immagine
Immagine


.conkyrc:

Codice: Seleziona tutto

######################
# - Conky settings - #
######################

lua_load ~/scripts/rings.lua
lua_draw_hook_pre ring_stats

update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont UbuntuTitling:size=9
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_x 2
gap_y 33
minimum_size 270 0
maximum_width 370

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color 181817

color0 181817
color1 000000

TEXT
${alignr}daniel@charon - Ubuntu 10.04 Lucid Lynx
##############
# - SYSTEM - #
##############
${alignr}Kernel: ${kernel} @${machine}
${goto 100}Uptime: ${uptime}

${voffset -12}${goto 127}${font UbuntuTitling:style=bold:size=38}${color0}${time %H}${color}${font}${voffset -28}${font UbuntuTitling:style=Bold:size=11}${color0}${time :%M}${time :%S}${color}${font}
${voffset -2}${goto 190}${font UbuntuTitling:style=Bold:size=8}${color0}${time %A}${color}${font}
${goto 190}${font UbuntuTitling:style=Bold:size=8}${color0}${time %d %b %Y}${color}${font}

${goto 210}${font UbuntuTitling:style=Bold:size=8}CPU${font}
${goto 175}${font UbuntuTitling:style=Bold:size=8}${cpu cpu1}%${goto 245}${cpu cpu2}%${font}
${goto 205}${font UbuntuTitling:style=Bold:size=9}~${acpitemp}°C${font}
${goto 75}${font Evilz:size=16}r${font}${goto 175}${font UbuntuTitling:style=Bold:size=8}${cpu cpu3}%${goto 245}${cpu cpu4}%${font}












${goto 80}${font UbuntuTitling:style=Bold:size=8}RAM${font}
${goto 80}${font UbuntuTitling:size=8}free: ${font UbuntuTitling:style=Bold:size=8}${memeasyfree}${font}
${goto 80}used: ${font UbuntuTitling:style=Bold:size=8}${mem}${font}${font}
















${alignc}${color1}${font UbuntuTitling:style=Bold:size=8}free space: ${font UbuntuTitling:style=Bold:size=8}${fs_free_perc}% - Temp: ${execi 120 hddtemp /dev/sda -n --unit=C}°${font}
###############
# - NETWORK - #
###############
${font UbuntuTitling:style=Bold:size=9}Rete${font}
# |--WLAN0
${if_up wlan0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${font UbuntuTitling:style=Bold:size=8}${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,60}
${goto 32}Total: ${totalup wlan0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${font UbuntuTitling:style=Bold:size=8}${downspeed wlan0}${font} ${alignr}${downspeedgraph wlan0 8,60}
${goto 32}Total: ${totaldown wlan0}
${voffset -2}${font Poky:size=14}Y${font}${goto 32} ${voffset -2}Signal: ${font UbuntuTitling:style=Bold:size=8}${wireless_link_qual wlan0}%${font} ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font Poky:size=13}w${font}${goto 32}${voffset -8}Local IP: ${alignr}${addr wlan0}
${goto 32}Public IP: ${alignr}${execi 10800 ~/.conkycolors/bin/conkyIp}
# |--ETH0
${else}${if_up eth0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${font UbuntuTitling:style=Bold:size=8}${upspeed eth0}${font} ${alignr}${upspeedgraph eth0 8,60 999999 999999}
${goto 32}Total: ${totalup eth0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${font UbuntuTitling:style=Bold:size=8}${downspeed eth0}${font} ${alignr}${downspeedgraph eth0 8,60 999999 999999}
${goto 32}Total: ${totaldown eth0}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr eth0}
${goto 32}Public IP: ${alignr}${execi 10800 ~/.conkycolors/bin/conkyIp}
# |--PPP0
${endif}${else}${if_up ppp0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${font UbuntuTitling:style=Bold:size=8}${upspeed ppp0}${font} ${alignr}${upspeedgraph ppp0 8,60 999999 999999}
${goto 32}Total: ${totalup ppp0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${font UbuntuTitling:style=Bold:size=8}${downspeed ppp0}${font} ${alignr}${downspeedgraph ppp0 8,60 999999 999999}
${goto 32}Total: ${totaldown ppp0}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr ppp0}
${endif}${else}${voffset 4}${font PizzaDude Bullets:size=12}4${font}${goto 32}Network Unavailable${endif}${endif}
# |--PROC
${font UbuntuTitling:style=Bold:size=9}Processi:                    CPU           ${alignr}RAM${font}
${font UbuntuTitling:style=Bold:size=8}${voffset -1}${goto 0}${top name 1} ${goto 124}${top cpu 1}${alignr }${top mem 1}
${voffset -1}${goto 0}${top name 2} ${goto 124}${top cpu 2}${alignr }${top mem 2}
${voffset -1}${goto 0}${top name 3} ${goto 124}${top cpu 3}${alignr }${top mem 3}
${voffset -1}${goto 0}${top name 4} ${goto 124}${top cpu 4}${alignr }${top mem 4}
${voffset -1}${goto 0}${top name 5} ${goto 124}${top cpu 5}${alignr }${top mem 5}
${font}${color}

rings.lua:

Codice: Seleziona tutto

--[[
Ring Meters by londonali1010 (2009)
 
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
 
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
 
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
	lua_load ~/scripts/rings-v1.2.1.lua
	lua_draw_hook_pre ring_stats
 
Changelog:
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)
]]
 
settings_table = {
--[[	{
		-- Edit this table to customise your rings.
		-- You can create more rings simply by adding more elements to settings_table.
		-- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
		name='time',
		-- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
		arg='%I.%M',
		-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
		max=12,
		-- "bg_colour" is the colour of the base ring.
		bg_colour=0xffffff,
		-- "bg_alpha" is the alpha value of the base ring.
		bg_alpha=0.1,
		-- "fg_colour" is the colour of the indicator part of the ring.
		fg_colour=0xffffff,
		-- "fg_alpha" is the alpha value of the indicator part of the ring.
		fg_alpha=0.2,
		-- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
		x=165, y=170,
		-- "radius" is the radius of the ring.
		radius=50,
		-- "thickness" is the thickness of the ring, centred around the radius.
		thickness=5,
		-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
		start_angle=0,
		-- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle.
		end_angle=360
	},]]
	{
		name='cpu',
		arg='cpu0',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=90, y=143,
		radius=63,
		thickness=21,
		start_angle=4,
		end_angle=176
	},
	{
		name='cpu',
		arg='cpu2',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=90, y=143,
		radius=63,
		thickness=21,
		start_angle=184,
		end_angle=356
	},
	{
		name='cpu',
		arg='cpu1',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=90, y=143,
		radius=32,
		thickness=18,
		start_angle=-35,
		end_angle=125
	},
	{
		name='cpu',
		arg='cpu3',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=90, y=143,
		radius=32,
		thickness=18,
		start_angle=145,
		end_angle=305
	},
	{
		name='acpitemp',
		arg='',
		max=65,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=90, y=143,
		radius=47,
		thickness=5,
		start_angle=45,
		end_angle=405
	},
	{
		name='memperc',
		arg='',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=278, y=298,
		radius=80,
		thickness=80,
		start_angle=180,
		end_angle=360
	},
	{
		name='swapperc',
		arg='',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=278, y=298,
		radius=36,
		thickness=5,
		start_angle=180,
		end_angle=360
	},
	{
		name='battery_percent',
		arg='BAT0',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=109, y=329,
		radius=90,
		thickness=3,
		start_angle=209,
		end_angle=398
	},
	{
		name='battery_percent',
		arg='BAT0',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=109, y=329,
		radius=90,
		thickness=3,
		start_angle=121,
		end_angle=131
	},
	{
		name='execi',
		arg='120 hddtemp /dev/sda -n --unit=C',
		max=53,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=143, y=515,
		radius=130,
		thickness=2,
		start_angle=270,
		end_angle=450
	},
	{
		name='fs_used_perc',
		arg='/',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.2,
		fg_colour=0x000000,
		fg_alpha=0.7,
		x=143, y=515,
		radius=68,
		thickness=120,
		start_angle=270,
		end_angle=450
	}
}
 
require 'cairo'
 
function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
 
function draw_ring(cr,t,pt)
	local w,h=conky_window.width,conky_window.height
 
	local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
	local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
 
	local angle_0=sa*(2*math.pi/360)-math.pi/2
	local angle_f=ea*(2*math.pi/360)-math.pi/2
	local t_arc=t*(angle_f-angle_0)
 
	-- Draw background ring
 
	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
	cairo_set_line_width(cr,ring_w)
	cairo_stroke(cr)
 
	-- Draw indicator ring
 
	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
	cairo_stroke(cr)		
end
 
function conky_ring_stats()
	local function setup_rings(cr,pt)
		local str=''
		local value=0
 
		str=string.format('${%s %s}',pt['name'],pt['arg'])
		str=conky_parse(str)
 
		value=tonumber(str)
		if value == nil then value = 0 end
		pct=value/pt['max']
 
		draw_ring(cr,pct,pt)
	end
 
	if conky_window==nil then return end
	local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
 
	local cr=cairo_create(cs)	
 
	local updates=conky_parse('${updates}')
	update_num=tonumber(updates)
 
	if update_num>5 then
		for i in pairs(settings_table) do
			setup_rings(cr,settings_table[i])
		end
	end
end

lo sò, l'icona della morte in mezzo alle cpu nel conky non c'entra una mazza, ma a me piace ;D
Ultima modifica di DaNieL85 il lunedì 16 agosto 2010, 4:12, modificato 1 volta in totale.
You HAVE to assume your visitor is a maniac serial killer, out to destroy your application. And you have to prevent it.
kar
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 607
Iscrizione: domenica 15 ottobre 2006, 22:55

Re: Posta il tuo .conkyrc & png

Messaggio da kar »

fango ha scritto: c'è il pulsante cancelletto per quello.
allora per il tuo meteo vediamo,hai fatto registrazione,settato il forecast config nella home?
Ciao e grazie.
Il tasto cancelleto va usato prima e dopo del testo da postare ? Potresti farmi un esempio cosi' la prossima volta ....

Per quanto riguarda il meteo, ehm ... ho seguito una guida prelevata dalla rete (dove tra l'altro erano riportate le righe di codice che ho postato), ma come operazioni ho semplicemente fatto quello che c'era scritto ( e che e' quello che ho riportato nel post precedente ....): prima ho installato conckyforecast, ho reso eseguibile il file conckyforecast.py
nessun altra operazione.

P.S.
Mi rendo conto che forse sono OT su questo trend, se mi consigliate, apro una nuova discussione del tipo "aiuto per configurare mwteo su concky"..... Grazie
Avatar utente
Diabolik62
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 16046
Iscrizione: domenica 20 dicembre 2009, 16:29
Distribuzione: wind 10049 archfce4.12

Re: Posta il tuo .conkyrc & png

Messaggio da Diabolik62 »

se metti il conky che hai postato in # tramite modifca ti aiutiamo :(
clicca sopra l'immagine
Allegati
Schermata-Rispondi al messaggio - Mozilla Firefox.png
Chiusa

Ritorna a “Bar Ubuntu”

Chi c’è in linea

Visualizzano questa sezione: nicolas e 11 ospiti