superkaramba e glassmonitor

Personalizzazione grafica del sistema: icone, temi, sfondi, suoni, eccetera.
Scrivi risposta
Avatar utente
UZ
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2014
Iscrizione: lunedì 15 maggio 2006, 10:14
Desktop: gnome-shell
Distribuzione: ubuntu 11.10 - i686
Località: Sedriano (MI)
Contatti:

superkaramba e glassmonitor

Messaggio da UZ »

come da titolo, ho appena installato superkaramba con un applet che si chiama glassmonitor. molto carina e relativamente leggera, ma la domanda e' un altra:
come posso personalizzare l'applet, inserendo ad esempio la rete da monitorare o modificando alcuni campi?

grazie
Notebook Lenovo G550 - Equipaggiato con  Ubuntu 11.10 (windows free)
Divilinux

Re: superkaramba e glassmonitor

Messaggio da Divilinux »

basta aprire il file contrassegnato col simbolo di superkaramba..con un normale editor di testo
se il file ha estensione.skz ..e' un eseguibile ma e' compresso..puoi tranquillamente estrarlo e modificarlo
per le modifiche al codice invece ..di solito si aprono i file .py..ma non e' la regola..dipende da come e' stato sviluppato il tema
Avatar utente
UZ
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2014
Iscrizione: lunedì 15 maggio 2006, 10:14
Desktop: gnome-shell
Distribuzione: ubuntu 11.10 - i686
Località: Sedriano (MI)
Contatti:

Re: superkaramba e glassmonitor

Messaggio da UZ »

grazie divilinux, sempre prezioso!! ma i file in questione dove  li trovo, nella home?
oppure devo modificare il file dopo averlo scaricato ma prima di installarlo?
Notebook Lenovo G550 - Equipaggiato con  Ubuntu 11.10 (windows free)
Divilinux

Re: superkaramba e glassmonitor

Messaggio da Divilinux »

ha ma tu li scarichi direttamente dal programma...non mi ricordo dove vanno..forse in /tmp..
io preferisco scaricarli dalla sezione apposita in www.kde-look.org..scompattarli nella home e poi modificarli da li
se ti interessa cambiare magari da eth0 a eth1 o quelle cose li..basta cambiare il comando che solitamente si trova nel codice in python..e lo stesso per le icone o immagini in generale..non devi modificare il codice..cioe' non serve conoscere il python..;)
Danielitos85
Prode Principiante
Messaggi: 206
Iscrizione: venerdì 15 dicembre 2006, 16:26

Re: superkaramba e glassmonitor

Messaggio da Danielitos85 »

anche a me interesserebbe modificare i temi di superkaramba tipo sostituire il monitoraggio di eth1 con wlan0...ed altre cose...se potete essere più chiari su come fare vi sarei grati....

ciao e grazie mille.
Divilinux

Re: superkaramba e glassmonitor

Messaggio da Divilinux »

prova a linkare il tema che vorresti modificare che ti aiutiamo..;)
Avatar utente
UZ
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2014
Iscrizione: lunedì 15 maggio 2006, 10:14
Desktop: gnome-shell
Distribuzione: ubuntu 11.10 - i686
Località: Sedriano (MI)
Contatti:

Re: superkaramba e glassmonitor

Messaggio da UZ »

io ho modificato un po' glassmonitor, su quello poso esserti sicuramente utile
Notebook Lenovo G550 - Equipaggiato con  Ubuntu 11.10 (windows free)
Danielitos85
Prode Principiante
Messaggi: 206
Iscrizione: venerdì 15 dicembre 2006, 16:26

Re: superkaramba e glassmonitor

Messaggio da Danielitos85 »

http://download.kde.org/khotnewstuff/ka ... -0.3.2.skz Questo è il link da dove ho scaricato il tema...
Il mio scopo è modificare la gestione della rete perchè ad esempio non mi esce l'indirizzo ip e penso sia dovuto al fatto che lui gestisca l'interfaccia eth1...cmq mi interesserebbe sapere in quale file andare a mettere mani per modificarlo...grazie mille
Danielitos85
Prode Principiante
Messaggi: 206
Iscrizione: venerdì 15 dicembre 2006, 16:26

Re: superkaramba e glassmonitor

Messaggio da Danielitos85 »

Ciao UZ grazie... è proprio quello il tema che vorrei modificare...mi indichi il file da modificare? in che linguaggio è?
Divilinux

Re: superkaramba e glassmonitor

Messaggio da Divilinux »

Codice: Seleziona tutto

################################################################
# Theme by	:	Diego Ghersi <vemecdos at gmail dot com>
# Website	:	http://www.biodesign.com.ar
#
# Theme name 	: GlassMonitor
# Theme Version	: 1.1 v
################################################################
#
#	KarambaDisplay settings
karamba x=100 y=100 w=243 h=720 interval=1000 locked=false
#	Font settings
defaultfont color=255,255,255 fontsize=9 font="Bitstream Vera Sans" shadow=1 bgcolor=0,0,0
#	Background and Image settings
image x=0 y=0 path="image/none.png" name="background"

################################################################
#	Karamba Body

# INFO SECCTION
<group> x=0 y=25
image x=21 y=24 path="image/backtittle.png" # INFOS Title
text x=121 y=0 sensor=program program="echo ${USER}@`hostname`" fontsize=15 align=center interval=3600000 # User name Line

text x=180 y=25 value="Infos" fontsize=14 align=rigth font="" #Info Tittle

text x=30 y=45 value="Kernel :" 				#
text x=100 y=45  sensor=program program="uname -r" interval=3600000	# Kernel Lines

text x=30 y=60 value="Machine :" 			#
text x=100 y=60 sensor=program program="uname -m" interval=3600000	# Machine Lines

text x=30 y=75 value="KDE / Qt :"								#
text x=140 y=75 value="/"									#
text x=100 y=75 sensor=program program="kde-config --version | grep KDE | awk '{ print $2 }'" interval=3600000	#
text x=160 y=75 sensor=program program="kde-config --version | grep Qt | awk '{ print $2 }'" interval=3600000	# KDE and QT version.

text x=30 y=90 value="Uptime :"								#
text x=100 y=90 sensor=uptime format="%d day(s)  %H h %M m" interval=60000		# UpTime Lines

#text x=30 y=105 value="Users :"				#
#text x=100 y=105 sensor=program program="users"		# User Line
</group>

# CPU and Memory SECCTION
<group> x=0 y=135
image x=21 y=0 path="image/backtittle.png" # CPU AND MEMORY Title
text x=95 y=0 value="CPU and Memory" fontsize=14 align=rigth font="" # CPU MEMORY Tittle

text x=30 y=25 sensor=program program="cat /proc/cpuinfo | grep 'model name' | sed -e 's/.*: //'" interval=120000	# CPU memory lines

graph x=32 y=43 w=150 h=33 sensor=cpu points=80 color=255,255,255 interval=1000	# CPU GRAPH
text x=190 y=56 sensor=cpu format="%v%" interval=1000

text x=30 y=85 value="CPU frequency :"
text x=129 y=85 sensor=program program="cat /proc/cpuinfo | grep 'cpu MHz' | sed -e 's/.*: //'| sed -e 's/\..../ MHz/'"  interval=120000

text x=30 y=100 value="CPU temp :"
#text x=120 y=100 sensor=program program="cat /proc/acpi/thermal_zone/THRM/temperature | grep 'temperature' | sed -e 's/.*: //'"
#text x=129 y=100 sensor=program program="sensors | grep 'M/B Temp' | awk '{print $3}'" interval=1000
text x=129 y=100 sensor=sensor format="%vC" type="temp" interval=5000

text x=42 y=118 value="Ram"
text x=133 y=118 sensor=memory format="%fm Mb free" interval=5000
text x=121 y=143 sensor=memory format="%um of %tm Mb" align=center interval=5000

bar  x=42  y=130 path="image/barload.png" sensor=memory format="%um" interval=10000
image x=42  y=130 path="image/barlines.png"

text x=42 y=160 value="Swap:"
text x=133 y=160 sensor=memory format="%fs Mb free"  interval=10000
text x=121 y=185 sensor=memory format="%us of %ts Mb" align=center  interval=10000

bar  x=42 y=172 path="image/barload.png" sensor=memory format="%us" interval=10000
image x=42  y=172 path="image/barlines.png"

image x=30 y=40 path="image/grill.png" # CPU grill
</group>

# Network Info
<group> x=0 y=340
image x=21 y=0 path="image/backtittle.png" # NETWORK Title
text x=155 y=0 value="Network" fontsize=14 align=rigth font="" # Network Tittle

text x=30 y=67 value="Ip :"
text x=90 y=67 sensor=program program="/sbin/ifconfig eth0 | grep 'inet ' | cut -d : -f2 | cut -d ' ' -f1" interval=600000

text x=30 y=83 value="Download :"
text x=90 y=83 sensor=network device="eth0" format="%in kB/s" interval=1000 decimals=2
text x=155 y=83 sensor=program program="/sbin/ifconfig eth0 | grep 'RX byte' | awk '{print $3 OFS $4}'" interval=30000

text x=30 y=97 value="Upload :"
text x=90 y=97 sensor=network device="eth0" format="%out kB/s" interval=1000 decimals=2
text x=155 y=97 sensor=program program="/sbin/ifconfig eth0 | grep 'TX byte' | awk '{print $7 OFS $8}'" interval=30000
graph x=32 y=25 w=150 h=34 color=1,247,1 points=60 sensor=network format="%in" device="eth0"  max=110 interval=1000
graph x=32 y=26 w=150 h=34 color=247,1,1 points=60 sensor=network format="%out" device="eth0"  max=110 interval=1000

image x=30 y=25 path="image/grill.png" # Net grill
</group>

# Partitions Info
<group> x=0 y=458
image x=21 y=0 path="image/backtittle.png" # PARTITIONS Title
text name=partitiontitle x=150 y=0 value="Partitions" fontsize=14 align=rigth font="" # Partitions Tittle

#text x=42 y=22 value="Root"
#text x=145 y=22 sensor=disk format="Used: %up%" mountpoint="/"
#text x=42 y=47 sensor=disk format="%u MB" mountpoint="/"
#text x=110 y=47 value="of"
#text x=145 y=47 sensor=disk format="%t MB" mountpoint="/"

#bar   x=42  y=34 path="image/barload.png" sensor=disk mountpoint="/" interval=100000
#image x=42  y=34 path="image/barlines.png"

#text x=42 y=62 value="hda2"
#text x=145 y=62 sensor=disk format="Used: %up%" mountpoint="/media/hda2"
#text x=110 y=87 value="of"
#text x=145 y=87 sensor=disk format="%t MB" mountpoint="/media/hda2"
#text x=42 y=87 sensor=disk format="%u MB" mountpoint="/media/hda2"

#bar   x=42  y=74 path="image/barload.png" sensor=disk mountpoint="/media/hda2" interval=100000
#image x=42  y=74 path="image/barlines.png"

#text x=42 y=102 value="Storage 2"
#text x=145 y=102 sensor=disk format="Used: %up%" mountpoint="/mnt/storage2"
#text x=110 y=127 value="of"
#text x=145 y=127 sensor=disk format="%t MB" mountpoint="/mnt/storage2"
#text x=42 y=127 sensor=disk format=%u MB" mountpoint="/mnt/storage2"

#bar   x=42  y=114 path="image/barload.png" sensor=disk mountpoint="/mnt/storage2" interval=100000
#image x=42  y=114 path="image/barlines.png"

#text x=42 y=142 value="Storage 3"
#text x=145 y=142 sensor=disk format="Used: %up%" mountpoint="/mnt/storage3"
#text x=110 y=167 value="of"
#text x=145 y=167 sensor=disk format="%t MB" mountpoint="/mnt/storage3"
#text x=42 y=167 sensor=disk format="%u MB" mountpoint="/mnt/storage3"

#bar   x=42 y=154 path="image/barload.png" sensor=disk mountpoint="/mnt/storage3" interval=100000
#image x=42 y=154 path="image/barlines.png"

#text x=42 y=182 value="Windows"
#text x=145 y=182 sensor=disk format="Used: %up%" mountpoint="/mnt/win"
#text x=110 y=207 value="of"
#text x=145 y=207 sensor=disk format="%t MB" mountpoint="/mnt/win"
#text x=42 y=207 sensor=disk format="%u MB" mountpoint="/mnt/win"

#bar   x=42 y=194 path="image/barload.png" sensor=disk mountpoint="/mnt/win" interval=100000
#image x=42 y=194 path="image/barlines.png"
</group>
il file e' glassmonitor.theme...il file che mi hai passato va rinominato .tgz o cmq un formato compresso e aperto (io ho usato xarchiver..con ark non funziona)
Avatar utente
UZ
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2014
Iscrizione: lunedì 15 maggio 2006, 10:14
Desktop: gnome-shell
Distribuzione: ubuntu 11.10 - i686
Località: Sedriano (MI)
Contatti:

Re: superkaramba e glassmonitor

Messaggio da UZ »

come giustamente suggeriva divilinux, una volta scaricato e decompresso l'archivio, clicca con il destro su "glassmonitor.theme", apri con .. e apri con kate

la cosa piu' semplice da fare e' fare "modifica - sostituire" e nel campo in alto metti "eth0", in quello in basso metti "ethx" dove x e' il valore della tua rete (nel mio caso eth1 ma potrebbe essere wlan0 o altro).

salvi e chiudi, poi apri superkaramba, scegli la voce "apri tema locale" e vai a scegliere il file che hai appena modificato.

fammi sapere se hai dubbi o non va
Notebook Lenovo G550 - Equipaggiato con  Ubuntu 11.10 (windows free)
Danielitos85
Prode Principiante
Messaggi: 206
Iscrizione: venerdì 15 dicembre 2006, 16:26

Re: superkaramba e glassmonitor

Messaggio da Danielitos85 »

ok appena torno a casa questa sera faccio un bel find per cercare quel file...ma in che linguaggio è? python >:(
Avatar utente
UZ
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2014
Iscrizione: lunedì 15 maggio 2006, 10:14
Desktop: gnome-shell
Distribuzione: ubuntu 11.10 - i686
Località: Sedriano (MI)
Contatti:

Re: superkaramba e glassmonitor

Messaggio da UZ »

vivadaniele85 ha scritto: ok appena torno a casa questa sera faccio un bel find per cercare quel file...ma in che linguaggio è? python >:(
credo di si (non conosco linguaggi di programmazione) pero' una volta capito come ragiona fare modifiche e' semplice
Notebook Lenovo G550 - Equipaggiato con  Ubuntu 11.10 (windows free)
Divilinux

Re: superkaramba e glassmonitor

Messaggio da Divilinux »

si sono tutte in python
Danielitos85
Prode Principiante
Messaggi: 206
Iscrizione: venerdì 15 dicembre 2006, 16:26

Re: superkaramba e glassmonitor

Messaggio da Danielitos85 »

ok...grazie mille...ho sostituito semplicemente come suggeriva UZ ad eth0 wlan0 grazie mille a tutti.........
Scrivi risposta

Ritorna a “Personalizzazione dell'ambiente desktop”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 2 ospiti