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
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 »

hopper ha scritto:
SuNjACk ha scritto:
hopper ha scritto: Ho provato ma mi da questo errore

Codice: Seleziona tutto

Traceback (most recent call last):
  File "/home/hopper/.conkyhotmail.py", line 6, in <module>
    import feedparser
ImportError: No module named feedparse
r
è evidente che mi manca il modulo feedparse,il punto è che non so come caricarlo in pyton ???
prova

Codice: Seleziona tutto

sudo apt-get install python-feedparser
Sono riuscito ad installare il modulo,però adesso mi da questo errore

Codice: Seleziona tutto

Traceback (most recent call last):
  File "/home/hopper/.conkyhotmail.py", line 56, in <module>
    readmail(f)
  File "/home/hopper/.conkyhotmail.py", line 33, in readmail
    nuevos = atom.entries[0].title.split(';')
IndexError: list index out of range

::) :(
anche a me capita lo stesso e purtroppo di python non ci capisco molto
Desktop openbox Halloween Documents Linux non è Windows
Free Software Is A Matter Of Liberty Not Price
Avatar utente
fruitz
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1061
Iscrizione: domenica 10 febbraio 2008, 12:10
Località: Berlino

Re: Posta il tuo .conkyrc & png

Messaggio da fruitz »

perchè se faccio
"own_window no"
le icone sul deskop scompaiono? si incasina tutto il desktop!
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 »

fruitz ha scritto: perchè se faccio
"own_window no"
le icone sul deskop scompaiono? si incasina tutto il desktop!
Hai provato a leggere il manpage di conky?
Desktop openbox Halloween Documents Linux non è Windows
Free Software Is A Matter Of Liberty Not Price
Avatar utente
fruitz
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1061
Iscrizione: domenica 10 febbraio 2008, 12:10
Località: Berlino

Re: Posta il tuo .conkyrc & png

Messaggio da fruitz »

dice che non funziona?
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 »

fruitz ha scritto: dice che non funziona?
Che comando hai dato?

Nel manpage puoi trovare la descrizione di own_window così puoi capire come funziona e capire perchè non funziona

Il comando giusto è questo

Codice: Seleziona tutto

man conky
Desktop openbox Halloween Documents Linux non è Windows
Free Software Is A Matter Of Liberty Not Price
Avatar utente
Sephirotgame
Prode Principiante
Messaggi: 204
Iscrizione: domenica 21 settembre 2008, 18:41

Re: Posta il tuo .conkyrc & png

Messaggio da Sephirotgame »

SuNjACk ha scritto:
Sephirotgame ha scritto:
SuNjACk ha scritto:
-Nik- ha scritto: Non c'è la possibilità di avere conky trasparente... perchè non mi funziona? :'(
Nel tuo conkyrc manca uno o più $endif , posteresti il tuo conkyrc

@Sephirotgame
Mi son ricordato che ti devo ancora dare le istruzioni per compilare conky per il supporto del lua-cairo (rotfl) sei ancora disposto?
sisi anzi stavo proprio aspettando!! fammi sapere..
scaricati i sorgenti dell' ultima versione
http://sourceforge.net/projects/conky/f ... 2/download

installati le dipendenze per la compilazione, io le ho installate con

Codice: Seleziona tutto

sudo apt-get build-dep conky
e installati anche

Codice: Seleziona tutto

sudo apt-get install liblua5.1-0-dev libx11-dev libcairo2-dev libxdamage-dev libxft-dev
poi installati QUESTO

successivamente scompatti i sorgenti che hai scaricato nella Home

spostati nella cartella delle sorgenti

Codice: Seleziona tutto

cd ~/conky-*
la parte cruciale
dai in sequenza

Codice: Seleziona tutto

./configure --enable-lua --enable-lua-cairo

Codice: Seleziona tutto

make

Codice: Seleziona tutto

sudo checkinstall
ora conky dovrebbe essere installato

P.S. questa è la procedura che ho seguito in jaunty
ho problemi con questa procedura.. ho seguito tutto alla lettera ma devo aver sbagliato qualcosa.. ho intrepid ibex.
dand
Sunjack chiedo lumi!!o l'ultimo comando mi da "command not found"..prima non ho trovato errori
http://forum.ubuntu-it.org/viewtopic.php?t=344817

magari qualcuno sa aiutarmi a risolvere il problema che ho con il mio schermo..
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 »

Prova a a questi prima.............

Codice: Seleziona tutto

sudo apt-get install build-essential
sudo apt-get install checkinstall
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
Sephirotgame
Prode Principiante
Messaggi: 204
Iscrizione: domenica 21 settembre 2008, 18:41

Re: Posta il tuo .conkyrc & png

Messaggio da Sephirotgame »

deegan ha scritto: Prova a a questi prima.............

Codice: Seleziona tutto

sudo apt-get install build-essential
sudo apt-get install checkinstall
ok dovrebbe andare grazie..ora per avere un conky come il tuo o sunjack cosa devo fare? basta lo script come per un conky normale o devo salvare qualcos'altro?
http://forum.ubuntu-it.org/viewtopic.php?t=344817

magari qualcuno sa aiutarmi a risolvere il problema che ho con il mio schermo..
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 »

Se vuoi un conky classico va bene così, su invece vuoi aggiungere al conky un script .lua devi salvarti il script .lua nella home e inserirlo nel conky:

ES:

Codice: Seleziona tutto

# — Lua Load — #
     lua_load ~/.scripts/clock_rings-v1.1.lua
     lua_draw_hook_pre clock_rings
TEXT

Looks here
Ultima modifica di deegan il sabato 5 dicembre 2009, 11:46, modificato 1 volta in totale.
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
Sephirotgame
Prode Principiante
Messaggi: 204
Iscrizione: domenica 21 settembre 2008, 18:41

Re: Posta il tuo .conkyrc & png

Messaggio da Sephirotgame »

deegan ha scritto: Se vuoi un conky classico va bene così, su invece vuoi aggiungere al conky un script .lua devi salvarti il script .lua nella home e inserirlo nel conky:

ES:

Codice: Seleziona tutto

# — Lua Load — #
     lua_load ~/.scripts/clock_rings-v1.1.lua
     lua_draw_hook_pre clock_rings
TEXT

Looks here
quello di conky hardcore è un macello..per iniziare me ne servirebbe uno più semplice comunque c'è qualcosa che non va.
ho provato a mettere quello di ivan di 2 pagine fa.
1. ho salvato nella home il file "ringsmod.lua"
2. ho salvato normalmente il file ".conkyrc5" (ne ho altri 4)
3. ho aggiunto
# — Lua Load — #
lua_load ~/.scripts/clock_rings-v1.1.lua   
lua_draw_hook_pre clock_rings
all'inizio del documento .conkyrc5

Lanciando il conky mi lascia lo spazio in alto a sinistra(selezionando con il mouse rimane quell'area dove teoricamente dovrebbe esserci conky) ma non si vede niente.

questo è l'errore che mi da

Codice: Seleziona tutto

jacopo@jacopo-laptop:~$ conky -d -c ~/.conkyrc5
Conky: llua_load: cannot open ~/.scripts/clock_rings-v1.1.lua: No such file or directory
Conky: /home/jacopo/.conkyrc5: 3: no such configuration: 'lua_draw_hook_pre'
Conky: /home/jacopo/.conkyrc5: 9: no such configuration: 'border_inner_margin'
Conky: /home/jacopo/.conkyrc5: 10: no such configuration: 'border_outer_margin'
Conky: llua_load: cannot open ~/Script/ringsmod.lua: No such file or directory
Conky: /home/jacopo/.conkyrc5: 58: no such configuration: 'lua_draw_hook_pre'
Conky: forked to background, pid is 20563
jacopo@jacopo-laptop:~$ 
Conky: desktop window (30000bb) is subwindow of root window (8b)
Conky: window type - normal
Conky: drawing to created window (0xb400001)
Conky: drawing to double buffer

http://forum.ubuntu-it.org/viewtopic.php?t=344817

magari qualcuno sa aiutarmi a risolvere il problema che ho con il mio schermo..
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 »

Sephirotgame ha scritto:
deegan ha scritto: Se vuoi un conky classico va bene così, su invece vuoi aggiungere al conky un script .lua devi salvarti il script .lua nella home e inserirlo nel conky:

ES:

Codice: Seleziona tutto

# — Lua Load — #
     lua_load ~/.scripts/clock_rings-v1.1.lua
     lua_draw_hook_pre clock_rings
TEXT

Looks here
quello di conky hardcore è un macello..per iniziare me ne servirebbe uno più semplice comunque c'è qualcosa che non va.
ho provato a mettere quello di ivan di 2 pagine fa.
1. ho salvato nella home il file "ringsmod.lua"
2. ho salvato normalmente il file ".conkyrc5" (ne ho altri 4)
3. ho aggiunto
# — Lua Load — #
lua_load ~/.scripts/clock_rings-v1.1.lua     
lua_draw_hook_pre clock_rings
all'inizio del documento .conkyrc5

Lanciando il conky mi lascia lo spazio in alto a sinistra(selezionando con il mouse rimane quell'area dove teoricamente dovrebbe esserci conky) ma non si vede niente.

questo è l'errore che mi da

Codice: Seleziona tutto

jacopo@jacopo-laptop:~$ conky -d -c ~/.conkyrc5
Conky: llua_load: cannot open ~/.scripts/clock_rings-v1.1.lua: No such file or directory
Conky: /home/jacopo/.conkyrc5: 3: no such configuration: 'lua_draw_hook_pre'
Conky: /home/jacopo/.conkyrc5: 9: no such configuration: 'border_inner_margin'
Conky: /home/jacopo/.conkyrc5: 10: no such configuration: 'border_outer_margin'
Conky: llua_load: cannot open ~/Script/ringsmod.lua: No such file or directory
Conky: /home/jacopo/.conkyrc5: 58: no such configuration: 'lua_draw_hook_pre'
Conky: forked to background, pid is 20563
jacopo@jacopo-laptop:~$ 
Conky: desktop window (30000bb) is subwindow of root window (8b)
Conky: window type - normal
Conky: drawing to created window (0xb400001)
Conky: drawing to double buffer

Se hai salvato nella tua home lo script lua con nome "ringsmod.lua"

Allora all'inizio del conkyrc dovresti aggiungere

Codice: Seleziona tutto

# — Lua Load — #
lua_load ~/ringsmod.lua     
lua_draw_hook_pre clock_rings
Desktop openbox Halloween Documents Linux non è Windows
Free Software Is A Matter Of Liberty Not Price
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 »

Sei sicuro che il percorso sia giusto???

# -- Lua load -- #
lua_load ~/.scripts/ringsmod.lua
lua_draw_hook_pre ring_stats
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
Sephirotgame
Prode Principiante
Messaggi: 204
Iscrizione: domenica 21 settembre 2008, 18:41

Re: Posta il tuo .conkyrc & png

Messaggio da Sephirotgame »

deegan ha scritto: Sei sicuro che il percorso sia giusto???

# -- Lua load -- #
lua_load ~/.scripts/ringsmod.lua
lua_draw_hook_pre ring_stats
non funziona ne così ne come scritto da sunjack..
potrei aver sbagliato qualcosa nella procedura forse? c'è un comando da dare per controllare? magari con intrepid ci sono problemi..
http://forum.ubuntu-it.org/viewtopic.php?t=344817

magari qualcuno sa aiutarmi a risolvere il problema che ho con il mio schermo..
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 »

Prova a postare:

Codice: Seleziona tutto

conky -V
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
Sephirotgame
Prode Principiante
Messaggi: 204
Iscrizione: domenica 21 settembre 2008, 18:41

Re: Posta il tuo .conkyrc & png

Messaggio da Sephirotgame »

Codice: Seleziona tutto

jacopo@jacopo-laptop:~$ conky -V
Conky 1.7.1 compiled Mon Jun  8 15:11:03 WEST 2009 for Linux 2.6.27-11-server (i686)

Compiled in features:

System config file: /etc/conky/conky.conf

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft

 Music detection:
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * RSS
  * Lua
  * wireless
  * config-output
  * apcupsd
jacopo@jacopo-laptop:~$ 

mmm ho ancora la versione 1.7.1 possibile??
io ho scaricato lo zip postato da sunjack che conteneva una cartella conky 1.7.2 messa nella home..poi ho fatto il resto..
http://forum.ubuntu-it.org/viewtopic.php?t=344817

magari qualcuno sa aiutarmi a risolvere il problema che ho con il mio schermo..
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 »

mmm ho ancora la versione 1.7.1 possibile??
  (bad)

Non ci siamo.......ti manca una cifra di roba......

Prova a rifare la procedura.........

Se istalli Karmic trovi conky 1.7.2 in synaptic........... ;)
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
Sephirotgame
Prode Principiante
Messaggi: 204
Iscrizione: domenica 21 settembre 2008, 18:41

Re: Posta il tuo .conkyrc & png

Messaggio da Sephirotgame »

deegan ha scritto:
mmm ho ancora la versione 1.7.1 possibile??
  (bad)

Non ci siamo.......ti manca una cifra di roba......

Prova a rifare la procedura.........

Se istalli Karmic trovi conky 1.7.2 in synaptic........... ;)
io la procedura l'ho seguita passo passo..
l'unico dubbio era all'inizio. cioè è giusto dopo aver scaricato lo zip estrarlo e mettere la cartella nella home? per il resto basta dare dei comandi da terminale e installare un deb. non credo di aver sbagliato!! comunque rifaccio tutto. ma non basta scaricare il deb di conky 1.7.2 per installarlo?
comunque per ora non voglio installare versioni dopo la 8.10 perchè mi danno problemi con la scheda grafica(non mi si abilitano gli effetti aggiuntivi e quindi neanche compiz) mentre con intrepid funziona tutto..
http://forum.ubuntu-it.org/viewtopic.php?t=344817

magari qualcuno sa aiutarmi a risolvere il problema che ho con il mio schermo..
Avatar utente
sixx
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2689
Iscrizione: mercoledì 12 dicembre 2007, 22:09
Desktop: Gnome 3
Distribuzione: Ubuntu 12.04 i686
Località: Empoli

Re: Posta il tuo .conkyrc & png

Messaggio da sixx »

Ivan! ha scritto: Eccolo  :P

Codice: Seleziona tutto

--[[
Ring Meters by londonali1010 (2009)
<< Modified by Crinos512 with inspiration from Proxess >>

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='wireless_link_qual_perc',
		-- "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='wlan0',
		-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
		max=100,
		-- "bg_colour" is the colour of the base ring.
		bg_colour=0x000000,
		-- "bg_alpha" is the alpha value of the base ring.
		bg_alpha=0.3,
		-- "fg_colour" is the colour of the indicator part of the ring.
		fg_colour=0x007FFF,
		-- "fg_alpha" is the alpha value of the indicator part of the ring.
		fg_alpha=0.5,
		-- "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=100, y=125,
		-- "radius" is the radius of the ring.
		radius=85,
		-- "thickness" is the thickness of the ring, centred around the radius.
		thickness=20,
		-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
		start_angle=-58,
		-- "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=58,
		-- "color_coding" is the variable that defines if there's a colour state level
		colour_coding=true,
		-- "coding_direction" simply indicates if it's a countdown (false) or a status (true)
		coding_direction=false,
		-- "warning" is the value that defines the state of the warning
		warning=75,
		-- "warning_colour" is the value that defines the state of the warning
		warning_colour=0x007FFF,
		-- "warning_alpha" is the alpha value of the indicator part of the ring during the state of the warning.
		warning_alpha=0.3,
		-- "danger" is the value that defines the state of the danger
		danger=50,
		-- "danger_colour" is the value that defines the state of the danger
		danger_colour=0x007FFF,
		-- "danger_alpha" is the alpha value of the indicator part of the ring during the state of the danger.
		danger_alpha=0.1

	},
]]	{
		name='battery_percent',
		arg='BAT0',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.3,
	--	fg_colour=0xFFFF00,
	--	fg_colour=0x405C3B,
	--	fg_colour=0x3C2602,
		fg_colour=0x0A1D06,
		fg_alpha=0.9,
		x=100, y=75,
		radius=55,
		thickness=10,
		start_angle=0,
		end_angle=180,
		colour_coding=true,
		coding_direction=false,
		warning=70,
		warning_colour=0xFF8800,
		warning_alpha=0.4,
		danger=20,
		danger_colour=0xFF0000,
		danger_alpha=0.5
	},
	{
		name='memperc',
		arg='cpu0',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.3,
	--	fg_colour=0xFFFF00,
		fg_colour=0x0A1D06,
	--	fg_colour=0x3C2602,
		fg_alpha=0.9,
		x=100, y=185,
		radius=55,
		thickness=10,
		start_angle=180,
		end_angle=360,
		colour_coding=true,
		coding_direction=true,
		warning=90,
	--	warning_colour=0x152F13,
		warning_colour=0x3C2602,
		warning_alpha=0.9,
		danger=80,
	--	danger_colour=0xFF0000,
	--	danger_colour=0x3C2602,
		danger_colour=0xFF0000,
		danger_alpha=0.5
	},
	{
		name='cpu',
		arg='cpu0',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.3,
	--	fg_colour=0xFFFF00,
		fg_colour=0x0A1D06,
	--	fg_colour=0x3C2602,
		fg_alpha=0.9,
		x=100, y=185,
		radius=25,
		thickness=35,
		start_angle=0,
		end_angle=360,
		colour_coding=true,
		coding_direction=true,
		warning=90,
	--	warning_colour=0x152F13,
		warning_colour=0x3C2602,
		warning_alpha=0.9,
		danger=80,
	--	danger_colour=0xFF0000,
	--	danger_colour=0x3C2602,
		danger_colour=0xFF0000,
		danger_alpha=0.5
	},
}

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)

	local wn, dn=pt['warning'], pt['danger']
	local cc, cd, wa, wc, da, dc=pt['colour_coding'], pt['coding_direction'], pt['warning_alpha'], pt['warning_colour'], pt['danger_alpha'], pt['danger_colour']

	local str=''
	local value=0

	str=string.format('${%s %s}',pt['name'],pt['arg'])
	str=conky_parse(str)
	value=tonumber(str)

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

	-- Draw indicator ring
	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
	if cc == false then
		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
	else
		if cd == true then
			if value >= wn and value < dn then
				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
			elseif value >= dn then
				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
			else
				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
			end
		else
			if value <= dn then
				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
			elseif value <= wn then
				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
			else
				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
			end
		end
	end
	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

conky adesso:
Immagine
Comunque, visto che tutti gli script che ho trovato non funzionavano per google reader, ho dovuto crearmelo :D
Se qualcuno vuole il file python basta che chieda  :)
Ciao Ivan, ho voluto mettere questo conky anche io, lo script per google reader fa, però non mi appaiono le curve e il numero mi appare sopra ???

Puoi postare il tuo conkyrc, intanto ti posto il mio

Codice: Seleziona tutto

#!/usr/bin/conky -d -c
##    .conkyrc configuration
alignment top_right
background yes
border_inner_margin 0
border_outer_margin 0
# http://htmlhelp.com/cgi-bin/color.cgi
color0 555555			#
color1 483D8B			# Dark Slate Blue
color2 B8860B			# Dark goldenrod
color3 4682B4			# Steelblue
color4 8B0000			# Dark red
color5 008080			# Teal
color6 333333			# Gray20
color7 C8C8FF			#  (COOL)
color8 FFFFCC			#  (WARM)
color9 FCCCCC			#  (HOT)
cpu_avg_samples 2
default_color B8860B          # Ghost white
default_outline_color 000000  # Black
default_shade_color 000000    # Black
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
gap_x 0
gap_y 32
max_specials 1024
max_user_text 4000
maximum_width 200
minimum_size 850
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_colour 000000      # Black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
pad_percents 2
short_units yes
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 1.0
uppercase no
use_spacer right
use_xft yes
xftalpha 0.75
xftfont Liberation Sans:size=8
# -- Lua load -- #
lua_load /home/sixx/ringsmod.lua
lua_draw_hook_pre ring_stats

#After this begins text to be formatted on screen
TEXT
${execi 180 /home/sixx/.conkyrcreader.py}
Ho copiato anche ringsmod.lua (a cosa serve?) e lo reso eseguibile.
Non uso Ubuntu per la sua filosofia LOL, ma perchè mi diverte di più. Non se ne può più di "Guarda che open non vuol dire gratis, winzozz è closed e la mela è chiusa...ecc..." Basta. Moderate le rosicate :D
L'essere umano? il gradino più basso dell'umanità, si può osservare tutti i giorni.
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 »

@sixx

La storia si ripete ;D

Posta

Codice: Seleziona tutto

conky -v
Desktop openbox Halloween Documents Linux non è Windows
Free Software Is A Matter Of Liberty Not Price
Avatar utente
sixx
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2689
Iscrizione: mercoledì 12 dicembre 2007, 22:09
Desktop: Gnome 3
Distribuzione: Ubuntu 12.04 i686
Località: Empoli

Re: Posta il tuo .conkyrc & png

Messaggio da sixx »

SuNjACk ha scritto: @sixx

La storia si ripete ;D

Posta

Codice: Seleziona tutto

conky -v

Codice: Seleziona tutto

Conky 1.6.1 compiled Mon Feb 16 13:23:18 UTC 2009 for Linux 2.6.24-19-server (i686)

Compiled in features:

System config file: /etc/conky/conky.conf

 X11:
  * Xdamage extension
  * Xdbe extension (double buffer)
  * xft

 Music detection:
  * mpd

 General features:
  * math
  * hddtemp
  * portmon
  * rss
  * wireless
sixx@sixx-desktop:~$ 
Se lo devo aggiornare, come faccio? ;D
Non uso Ubuntu per la sua filosofia LOL, ma perchè mi diverte di più. Non se ne può più di "Guarda che open non vuol dire gratis, winzozz è closed e la mela è chiusa...ecc..." Basta. Moderate le rosicate :D
L'essere umano? il gradino più basso dell'umanità, si può osservare tutti i giorni.
Chiusa

Ritorna a “Bar Ubuntu”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 11 ospiti