Posta il tuo .conkyrc & png ""Leggete in 1°Pagina conkyForecast""
- Diabolik62
- Tenace Tecnocrate

- Messaggi: 16046
- Iscrizione: domenica 20 dicembre 2009, 16:29
- Distribuzione: wind 10049 archfce4.12
Re: Posta il tuo .conkyrc & png
il testo va incollato dentro il tag che ti appare quando clicchi su #
Re: Posta il tuo .conkyrc & png
Fatto (spero bene). GrazieDiabolik62 ha scritto: se metti il conky che hai postato in # tramite modifca ti aiutiamo
clicca sopra l'immagine
- Diabolik62
- Tenace Tecnocrate

- Messaggi: 16046
- Iscrizione: domenica 20 dicembre 2009, 16:29
- Distribuzione: wind 10049 archfce4.12
Re: Posta il tuo .conkyrc & png
(nono) (nono)
il conky non è a posto siamo in attesa che tu metta il testo del conky dentro il tag # che appare in modifca quando inserisci il messaggio
deve essere cosi
il conky non è a posto siamo in attesa che tu metta il testo del conky dentro il tag # che appare in modifca quando inserisci il messaggio
deve essere cosi
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} - Mago Nick
- Scoppiettante Seguace

- Messaggi: 708
- Iscrizione: venerdì 13 luglio 2007, 18:54
- Desktop: ubuntu
- Distribuzione: Ubuntu 12.04.4 LTS x86_64
Re: Posta il tuo .conkyrc & png
salve a tutti, questa mi sembra la discussione giusta. Sto cercando di configurare il mio conky. questo è il codice
allego la schermata.
Io vorrei affiancare conky con la dock AWN. sapreste dirmi come fare?
grazie
andrea
Codice: Seleziona tutto
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# $Id: conky.conf 990 2007-11-22 19:38:17Z pkovacs $
background yes
border_width 1
cpu_avg_samples 2
default_color black
default_outline_color white
default_shade_color white
draw_borders yes
draw_graph_borders yes
draw_outline no
draw_shades no
gap_x 0
gap_y 0
net_avg_samples 2
no_buffers yes
out_to_console no
own_window yes
own_window_class Conky
own_window_type desktop
alignment top_right
own_window_hints above
own_window_transparent yes
#border_margin 5
stippled_borders 1
update_interval 1.0
uppercase no
use_spacer none
TEXT
${color black}$color $uptime ${color black} CPU0 Mhz:$color $freq - ${cpu cpu1}% ${color black}CPU1 Mhz:$color $freq - ${cpu cpu}% ${color black} RAM:$color $mem - $memperc% ${color black}Swap:$color $swap ${color black}Batt:$color ${battery_percent BAT0}% ${battery_time BAT0}
${color black}Temp:$color $acpitemp C ${color blak} ${color black}Spazio: $color root $color${fs_free /} | home $color${fs_free /home} | dati $color${fs_free /media} ${color black}Rete: Up:$color ${upspeed eth0} k/s${color black} - Down:$color ${downspeed eth0} k/sIo vorrei affiancare conky con la dock AWN. sapreste dirmi come fare?
grazie
andrea
- Diabolik62
- Tenace Tecnocrate

- Messaggi: 16046
- Iscrizione: domenica 20 dicembre 2009, 16:29
- Distribuzione: wind 10049 archfce4.12
Re: Posta il tuo .conkyrc & png
prova a mettere sopra text
alignment tr
alignment tr
- Diabolik62
- Tenace Tecnocrate

- Messaggi: 16046
- Iscrizione: domenica 20 dicembre 2009, 16:29
- Distribuzione: wind 10049 archfce4.12
Re: Posta il tuo .conkyrc & png
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
^Cti sei iscritto a wheater.con e messo le chiavi??
Re: Posta il tuo .conkyrc & png
Sulla guida citata non si parlava di registrazione. Ora l'ho fatta. Ma quanto tempo occorre aspettare prima che arrivi l'email con i dati da inserire sul file ? (e' da piu' di un'ora che mi sono registrato ...)Diabolik62 ha scritto:gli errori del conky stanno quiCodice: 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
ti sei iscritto a wheater.con e messo le chiavi??
Re: Posta il tuo .conkyrc & png
pazienza,in giornata arriverà sicuramente.
Re: Posta il tuo .conkyrc & png
Ok, arrivati.fango ha scritto: pazienza,in giornata arriverà sicuramente.
Cortesemente, potete dirmi dove inserirli e quali file devo utilizzare/modificare ?
Grazie
- m3nhir
- Entusiasta Emergente

- Messaggi: 2291
- Iscrizione: mercoledì 31 dicembre 2008, 18:48
- Desktop: gnome-shell
- Distribuzione: Ubuntu 12.04.4 LTS x86_64
Re: Posta il tuo .conkyrc & png
per sapere il codice della citta vai quiSulla guida citata non si parlava di registrazione. Ora l'ho fatta. Ma quanto tempo occorre aspettare prima che arrivi l'email con i dati da inserire sul file ? (e' da piu' di un'ora che mi sono registrato ...)
http://xoap.weather.com/search/search?where=TURIN
nella barra di navigazione del broswer sostituisci "TURIN" con il nome della locatità cahe ti interessa (in maiuscolo)
e premi invio.
ti comparirà un elenco di località e relativi codici (a volte ci sono diverse località con lo stesso nome ma
in stati diversi)
Chi sa ascoltare non soltanto è simpatico a tutti , ma dopo un pò finisce con l'imparare qualcosa.
-Wilson Mizner- Linux User # 207701 Ubuntu User # 27508
-Wilson Mizner- Linux User # 207701 Ubuntu User # 27508
-
deegan
- 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
Non ho resistito ad installare conky sulla mia fresca installazione di Arch...................... (rotfl) (rotfl)

MB* ASUS TUF Gaming Z690 SV* EVGA RTX 3080 Ti CPU* i7-12700K
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
- m3nhir
- Entusiasta Emergente

- Messaggi: 2291
- Iscrizione: mercoledì 31 dicembre 2008, 18:48
- Desktop: gnome-shell
- Distribuzione: Ubuntu 12.04.4 LTS x86_64
Re: Posta il tuo .conkyrc & png
qualcuno sa spiegarmi perché nel mio ConkyForecast non mi vengono visualizzate le fasi lunari.
Ho installato il font "moon_phases" e aggiunto questa riga al template:
Ho copiato la riga che mi mostra le icone del tempo previsto che viene correttamente visualizzata cambiando solo il riferimento alle fasi lunari "MF"
Eppure al posto delle icone viene visualizzato solo lo spazio bianco... >:(
Ho installato il font "moon_phases" e aggiunto questa riga al template:
Codice: Seleziona tutto
${voffset 10}${goto 410}${font Moon Phases:size=32}[--datatype=MF --startday=1 --endday=4 --spaces=3]${font}Eppure al posto delle icone viene visualizzato solo lo spazio bianco... >:(
Chi sa ascoltare non soltanto è simpatico a tutti , ma dopo un pò finisce con l'imparare qualcosa.
-Wilson Mizner- Linux User # 207701 Ubuntu User # 27508
-Wilson Mizner- Linux User # 207701 Ubuntu User # 27508
-
deegan
- 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
Prova così... 
Ma devi copiarlo nel file .template non nel conky
Codice: Seleziona tutto
${image [--datatype=MI] -p 40,90 -s 50x50}MB* ASUS TUF Gaming Z690 SV* EVGA RTX 3080 Ti CPU* i7-12700K
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
Re: Posta il tuo .conkyrc & png
Allora, ecco il mio conky scopiazzato ed in parte funzionante.
La parte funzionante e' quella del meteo, non capisco pero' perche' la prima parte non mostra nulla.
Ecco il codice (....questa volta "taggato" ....
)
Potreste aiutarmi a capire ed a risolvere ?
Grazie
La parte funzionante e' quella del meteo, non capisco pero' perche' la prima parte non mostra nulla.
Ecco il codice (....questa volta "taggato" ....
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
#color1 2BBCFF #battery
#color2 42FF30 #memory
#color3 D94600 #cpu
#color4 74C2B7 #disk
TEXT
# ### Intestazione ### ${font HandelGotD:bold:size=8}${color4}Weather${color}$font
# ### Simboli Sole/Direzione vento # ${voffset 5}${alignr 170}${font ConkyWeather:size=45}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WF}${font}${alignr 110}${voffset -40} ${font ConkyWindNESW:normal:size=40}${execpi 900 conkyForecast --location=ITXX0260 --datatype=BS}${font}
# ### Fase lunare ### ${alignr 50}${voffset -46}${font moon phases:size=32}${execpi 900 conkyForecast --location=ITXX0260 --datatype=MF}$font
# ### Sereno/..../ + ggradi ### ${voffset 10}${execi 900 conkyForecast --location=ITXX0260 --datatype=CT}${alignr}${color4} ${execpi 900 conkyForecast --location=ITXX0260 --datatype=HT}${color}
# Humidity:${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=HM}${color}
# Precipitation Chance: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=PC --startday=0}${color}
# Wind Directon: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WD}${color}
# Wind Angle: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WA}${color}
# Wind Speed: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WS}${color}
# Wind Gusts: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WG}${color}
# Barometer: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=BR}${color}
# Barometer Description: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=BD}${color}
# Visibility: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=VI}${color}
# # Dew Point: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=DP}${color}
# UV Text: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=UT}${color}
# SunRise: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=SR}${color}
# DayLight: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=DL}${color}
# SunSet: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=SS}${color}
# Moon Phase: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=MP}${color}
City Name: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=CN}${color}
Country: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=CO}${color}
# Last Update: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=LU}${color}
${font HandelGotD:bold:size=8}${color4}Forecast${font}${color}
${voffset 5}${execi 900 conkyForecast --location=ITXX0260 --datatype=DW --shortweekday --startday=1 --endday=4 --spaces=10}
${font ConkyWeather:size=32}${execi 900 conkyForecast --location=ITXX0260 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${execi 900 conkyForecast --location=ITXX0260 --datatype=HT --startday=1 --endday=4 --spaces=8}
Grazie
-
deegan
- 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
# ### Intestazione ###
Se metti il #prima delle parole è sicuro che non le vedi... (rotfl)
Se metti il #prima delle parole è sicuro che non le vedi... (rotfl)
MB* ASUS TUF Gaming Z690 SV* EVGA RTX 3080 Ti CPU* i7-12700K
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
- m3nhir
- Entusiasta Emergente

- Messaggi: 2291
- Iscrizione: mercoledì 31 dicembre 2008, 18:48
- Desktop: gnome-shell
- Distribuzione: Ubuntu 12.04.4 LTS x86_64
Re: Posta il tuo .conkyrc & png
si, cosi visualizza l'immagine attuale della fase lunare, ma perchèdeegan ha scritto: Prova così...
Ma devi copiarlo nel file .template non nel conkyCodice: Seleziona tutto
${image [--datatype=MI] -p 40,90 -s 50x50}
invece non mi visualizza le immagini del font come invece fà per la situazione meteo per i giorni a venire? ???
eppure ho copiato quella riga modificando solo il datatype corrispondente alla fase lunare e naturalmente il riferimento al font.
questa è il template:
Codice: Seleziona tutto
${voffset 5}${goto 20}${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 20}${font ConkyWindNESW:size=40}[--datatype=BS]${font}
${voffset 5}[--datatype=WS] - [--datatype=WD]
${voffset -145}${goto 110}${color1}${font Bitstream Vera Sans Mono:style=Bold:size=14}[--datatype=CT]${font}
${voffset 10}${goto 110}${color3}Località: ${color1}[--datatype=OB]
${goto 110}${color3}Precipitazioni: ${color1}[--datatype=PC]
${goto 110}${color3}UV: ${color1}[--datatype=UI] - [--datatype=UT]
${goto 110}${color3}Umidità: ${color1}[--datatype=HM]
${goto 110}${color3}Punto di rugiada: ${color1}[--datatype=DP]
${goto 110}${color3}Alba/Tramonto: ${color1}[--datatype=SR] / [--datatype=SS]
${goto 110}${color3}Pressione: ${color1}[--datatype=BR] - [--datatype=BD]
${goto 110}${color3}Luna: ${color1}[--datatype=MP]
${voffset -145}${goto 425}[--datatype=DW --startday=1 --shortweekday]${goto 500}[--datatype=DW --startday=2 --shortweekday]${goto 575}[--datatype=DW --startday=3 --shortweekday]${goto 650}[--datatype=DW --startday=4 --shortweekday]
${voffset 10}${goto 410}${font ConkyWeather:size=32}[--datatype=WF --startday=1 --endday=4 --spaces=3]${font}
${voffset 10}${goto 410}${font Moon Phases:size=12}[--datatype=MF --startday=1 --endday=4 --spaces=3]${font}
${voffset 15}${goto 415}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 490}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 570}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 645}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]
${color3}${font Bitstream Vera Sans Mono:size=9}${alignr 20}Ultimo Aggiornamento: [--datatype=LU]${font}
Chi sa ascoltare non soltanto è simpatico a tutti , ma dopo un pò finisce con l'imparare qualcosa.
-Wilson Mizner- Linux User # 207701 Ubuntu User # 27508
-Wilson Mizner- Linux User # 207701 Ubuntu User # 27508
Re: Posta il tuo .conkyrc & png
Ok. Penso di aver cominciato a capire.
Ora pero' mi servirebbero un po' di informazioni aggiuntive (se possibile)
Questo e' il codice (scopiazzato) del mio conky (test) (commentato in maniera elementare per ricordarmi vari passaggi ed utilizzo di variabili ... ):
Le mie domande/problemi sono:
1) I 5 programmi presenti su "Carico CPU" hanno tutti lo stesso carico percentuale (che varia continuamente, ma in maniera uguale per tutti e cinque...): cosa c'e' di sbagliato nel codice ?
2) Il controllo delle email funziona alla grande. Vorrei pero' avere a video, se le email sono uguali a 0 la scritta "non ci sono email" invece di "Hai 0 email"
3) L' hd da 500gb ha varie partizioni: come faccio a visualizzare anche le altre oltre alla home?
4) Attualmente mi collego tramite chiavetta ONDA, ma c'e' modo di inserire qualche "if" ed "else" per controllare quale connessione e' attiva e quindi visualizzare i dati ?
5) Non e' che c'e' qualche script che dica il tempo trascorso in collegamento ed i mb scaricati (cosi' da tenere sotto controllo la chiavetta prepagata) ?
Ora pero' mi servirebbero un po' di informazioni aggiuntive (se possibile)
Questo e' il codice (scopiazzato) del mio conky (test) (commentato in maniera elementare per ricordarmi vari passaggi ed utilizzo di variabili ... ):
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 250
maximum_width 350
# ****** allineamento: tr = alto dx / br basso dx
alignment tr
gap_x 2
gap_y 50
# — 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
#color1 2BBCFF #battery
#color2 42FF30 #memory
#color3 D94600 #cpu
#color4 74C2B7 #disk
# inizio prove #
cpu_avg_samples 1
net_avg_samples 2
# fine prove #
TEXT
# inizio prove #
# ***** Controllo posta ***
# ***** Dopo aver installato Conkymail.deb e copiato conkyEmail.py sotto home/kar/Conky ***
# ***** Funzione
${font Zekton:size=11}${color1}Hai: ${color3}${execi 60 python /home/kar/Conky/conkyEmail.py --servertype=POP --servername=popmail.email.it --username=xx.xxx@email.it --password=xxxxxxxxx}${color1} E-Mail$font
${voffset 10}${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}%
${voffset 50}
${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}
# ***** riga e parametri
# ${goto 225}$nodename - $sysname: $nodename=xxx-laptop/$sysname=Linux
# ***** fine riga
${goto 225}$sysname
# ${goto 115}$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 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}
# fine prove #
# ****** Intestazione (testo Wethers$) ***
# ${font HandelGotD:bold:size=8}${color4}Weather${color}$font
# ****** Fine Intestazione ***
# ****** Simboli Sole/Direzione vento ***
# ${voffset 5}${alignr 170}${font ConkyWeather:size=45}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WF}${font}${alignr 110}${voffset -40} ${font ConkyWindNESW:normal:size=40}${execpi 900 conkyForecast --location=ITXX0260 --datatype=BS}${font}
# ****** Simboli Sole/Direzione vento ***
# ### Fase lunare ### ${alignr 50}${voffset -46}${font moon phases:size=32}${execpi 900 conkyForecast --location=ITXX0260 --datatype=MF}$font
# ### Sereno/..../ + ggradi ### ${voffset 10}${execi 900 conkyForecast --location=ITXX0260 --datatype=CT}${alignr}${color4} ${execpi 900 conkyForecast --location=ITXX0260 --datatype=HT}${color}
# Humidity:${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=HM}${color}
# Precipitation Chance: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=PC --startday=0}${color}
# Wind Directon: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WD}${color}
# Wind Angle: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WA}${color}
# Wind Speed: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WS}${color}
# Wind Gusts: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=WG}${color}
# Barometer: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=BR}${color}
# Barometer Description: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=BD}${color}
# Visibility: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=VI}${color}
# # Dew Point: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=DP}${color}
# UV Text: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=UT}${color}
# SunRise: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=SR}${color}
# DayLight: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=DL}${color}
# SunSet: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=SS}${color}
# Moon Phase: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=MP}${color}
City Name: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=CN}${color}
# Country: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=CO}${color}
# Last Update: ${alignr}${color4}${execpi 900 conkyForecast --location=ITXX0260 --datatype=LU}${color}
${font HandelGotD:bold:size=8}${color4}Forecast${font}${color}
${voffset 5}${execi 900 conkyForecast --location=ITXX0260 --datatype=DW --shortweekday --startday=1 --endday=4 --spaces=10}
${font ConkyWeather:size=32}${execi 900 conkyForecast --location=ITXX0260 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${execi 900 conkyForecast --location=ITXX0260 --datatype=HT --startday=1 --endday=4 --spaces=8}
Le mie domande/problemi sono:
1) I 5 programmi presenti su "Carico CPU" hanno tutti lo stesso carico percentuale (che varia continuamente, ma in maniera uguale per tutti e cinque...): cosa c'e' di sbagliato nel codice ?
2) Il controllo delle email funziona alla grande. Vorrei pero' avere a video, se le email sono uguali a 0 la scritta "non ci sono email" invece di "Hai 0 email"
3) L' hd da 500gb ha varie partizioni: come faccio a visualizzare anche le altre oltre alla home?
4) Attualmente mi collego tramite chiavetta ONDA, ma c'e' modo di inserire qualche "if" ed "else" per controllare quale connessione e' attiva e quindi visualizzare i dati ?
5) Non e' che c'e' qualche script che dica il tempo trascorso in collegamento ed i mb scaricati (cosi' da tenere sotto controllo la chiavetta prepagata) ?
Re: Posta il tuo .conkyrc & png
Per il punto 4 si, lo fà di default il conky-colors (che ti consiglio di provare, ti guardi il conkyrc che ti butta fuori e impari):kar ha scritto:
Le mie domande/problemi sono:
1) I 5 programmi presenti su "Carico CPU" hanno tutti lo stesso carico percentuale (che varia continuamente, ma in maniera uguale per tutti e cinque...): cosa c'e' di sbagliato nel codice ?
2) Il controllo delle email funziona alla grande. Vorrei pero' avere a video, se le email sono uguali a 0 la scritta "non ci sono email" invece di "Hai 0 email"
3) L' hd da 500gb ha varie partizioni: come faccio a visualizzare anche le altre oltre alla home?
4) Attualmente mi collego tramite chiavetta ONDA, ma c'e' modo di inserire qualche "if" ed "else" per controllare quale connessione e' attiva e quindi visualizzare i dati ?
5) Non e' che c'e' qualche script che dica il tempo trascorso in collegamento ed i mb scaricati (cosi' da tenere sotto controllo la chiavetta prepagata) ?
Codice: Seleziona tutto
###############
# - 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,120}
${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,120}
${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,120 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}
Come vedi ci sono gli if, elseif, else e endif, che puoi usare a piacimento.
Per il punto 1 non saprei, il mio proc è:
Codice: Seleziona tutto
# |--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}
${font}${color}
You HAVE to assume your visitor is a maniac serial killer, out to destroy your application. And you have to prevent it.
Re: Posta il tuo .conkyrc & png
Seraphan ha scritto: Vai con il mio conky!!!
.conkyrc1
.conkyrc2Codice: 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}
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}%
ciao a tutti premesso che sono principiante come posso fare per avere un desktop simile a questo? se qualcuno può aiutarmi (uso conky da 3 giorni...)
- jmilton00
- Entusiasta Emergente

- Messaggi: 1645
- Iscrizione: domenica 28 dicembre 2008, 21:54
- Località: Da qualche parte in Calabria
Re: Posta il tuo .conkyrc & png
È da tantissimo che non posto più qui :-[
Mi chiedevo, è possibile far visualizzare a conky un'immagine in scala di grigi invece che a colori?
Mi chiedevo, è possibile far visualizzare a conky un'immagine in scala di grigi invece che a colori?
Chi c’è in linea
Visualizzano questa sezione: nicolas e 11 ospiti
