Jelly Conky: problema allineamenti e icone

Personalizzazione grafica del sistema: icone, temi, sfondi, suoni, ecc.

Jelly Conky: problema allineamenti e icone

Messaggioda Andrea/M » martedì 20 marzo 2018, 19:50

Ciao a tutti,
ho installato il tema "Jelly" per conky seguendo le istruzioni sui pacchetti necessari ma una volta lanciato da terminale le versioni "clock--date--weather__small" e "clock--date--weather__big" il risultato sullo schermo mi sembra diverso da quello dello screenshot su deviant art (https://www.deviantart.com/art/Jelly-Conky-442559003) nel senso che nel primo caso mi sembra di notare un disallineamento di testo e icona meteo:
clock--date--weather__small.png

e nel secondo caso oltre al disallinaemento l'icona meteo non viene visualizzata:
clock--date--weather__big.png

Da cosa potrebbe dipendere?
Grazie in anticipo per i vostri consigli
Andrea/M
Prode Principiante
 
Messaggi: 58
Iscrizione: agosto 2008

Re: Jelly Conky: problema allineamenti e icone

Messaggioda ivantu » giovedì 22 marzo 2018, 12:31

innanzitutto dove hai copiato i file di configurazione del conky scaricato?

una volta scoperto dove è situato, da terminale lanci i comandi
Codice: Seleziona tutto
killall conky
per chiudere se è già attivo.

- posizionarsi con il terminale sulla directory del tema conky Jelly
Codice: Seleziona tutto
cd  /directory_del_conky


- aprire il tema conky Jelly da terminale
Codice: Seleziona tutto
conky -D -c tema_conky
e posta qui l'output
p.s. tema_conky è il nome file associato al tema Jelly


poi postami qui il contenuto del file del tema_conky
Codice: Seleziona tutto
cat -n tema_conky
Buona giornata utenti del forum. :ciao: ivantu
Avatar utente
ivantu
Rampante Reduce
Rampante Reduce
 
Messaggi: 5064
Iscrizione: giugno 2013
Desktop: Lubuntu
Distribuzione: 16.04.3 LTS x86_64, 17.10 x86_64
Sesso: Maschile

Re: Jelly Conky: problema allineamenti e icone

Messaggioda Andrea/M » giovedì 22 marzo 2018, 16:05

Sia nel primo caso che nel secondo ho installato la cartella .jelly-conky e il tema .conkyrc nella home
tema clock--date--weather__small:
Codice: Seleziona tutto
conky.config = {

-------------------------------------
--  Generic Settings
-------------------------------------
background=true,
update_interval=1,
double_buffer=true,
no_buffers=true,

draw_shades=false,
draw_outline=false,
draw_borders=false,


-------------------------------------
--  Window Specifications
-------------------------------------
gap_x=100,
gap_y=70,

minimum_height=200,
minimum_width=200,

own_window=true,
own_window_type="normal",
own_window_transparent=true,
own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",

own_window_argb_visual=true,
own_window_argb_value=0,


-------------------------------------
--  Text Settings
-------------------------------------
use_xft=true,
xftalpha=1,
font="Droid Sans:size=10",
text_buffer_size=256,
override_utf8_locale=true,


-------------------------------------
--  Color Scheme
-------------------------------------
default_color="FFFFFF",

color0="FFFFFF",  --  hours
color1="FFFFFF",  --  clock dots
color2="FFFFFF",  --  minutes
color3="FFFFFF",  --  week day
color4="FFFFFF",  --  month day
color5="FFFFFF",  --  month
color6="FFFFFF",  --  current temp
color7="FFFFFF",  --  min temp
color8="FFFFFF",  --  max temp
color9="FFFFFF",  --  current conditions


-------------------------------------
--  Icon Sources
-------------------------------------
template0="~/.jelly-conky/#fff__32",


-------------------------------------
--  API Key
-------------------------------------
template6="6668831a753fade2aa7ef2c373bd937b",


-------------------------------------
--  City ID
-------------------------------------
template7="3183284",


-------------------------------------
--  Temp Unit (default, metric, imperial)
-------------------------------------
template8="metric",


-------------------------------------
--  Locale (e.g. "es_ES.UTF-8")
--  Leave empty for default
-------------------------------------
template9="it_IT.UTF-8"

}


-------------------------------------
-------------------------------------


conky.text = [[
\
\
${execi 300 ~/.jelly-conky/get_weather ${template6} ${template7} ${template8} ${template9}}\
\
\
\
\
${font Roboto :size=42}${color0}\
${alignc}${time %H}\
\
\
\
\
\
${font Roboto Thin :size=42}${color1}:\
\
\
\
\
${font Roboto Thin :size=42}${color2}\
${time %M}${font}${color}
\
\
\
\
${font Roboto Light :size=12}${color3}\
${voffset 12}${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%A"}${color}, \
\
\
\
\
${font Roboto :size=12}${color4}\
${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%d"}${color} \
\
\
\
\
${font Roboto Light :size=12}${color5}\
${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%B"}${font}${color}
\
\
\
\
${font Roboto Light :size=22}${color6}\
${goto 40}${voffset 18}\
${execi 300 jq ".main.temp" ~/.cache/jelly-conky/weather.json | awk '{print int($1+0.5)}' # round num}°${font}${color}
\
\
\
\
${font Roboto Light :size=10}\
${goto 40}${voffset 5}\
${color7}${execi 300 ~/.jelly-conky/parse_weather 'avg' '.main.temp_min' '0'}° ${color}| \
${color8}${execi 300 ~/.jelly-conky/parse_weather 'avg' '.main.temp_max' '0'}°${font}${color}
\
\
\
\
${font Roboto Light :size=10}${color9}\
${goto 40}${voffset 5}\
${execi 300 jq -r ".weather[0].description" ~/.cache/jelly-conky/weather.json}${font}${color}
\
\
\
\
${execi 300 cp -f ${template0}/$(jq .weather[0].id ~/.cache/jelly-conky/weather.json).png ~/.cache/jelly-conky/current.png}${image ~/.cache/jelly-conky/current.png -p 128,114 -s 32x32}\
]]


Tema clock--date--weather__big:
Codice: Seleziona tutto
conky.config = {

-------------------------------------
--  Generic Settings
-------------------------------------
background=true,
update_interval=1,
double_buffer=true,
no_buffers=true,

draw_shades=false,
draw_outline=false,
draw_borders=false,


-------------------------------------
--  Window Specifications
-------------------------------------
gap_x=100,
gap_y=70,

minimum_height=250,
minimum_width=360,

own_window=true,
own_window_type="normal",
own_window_transparent=true,
own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",

own_window_argb_visual=true,
own_window_argb_value=0,


-------------------------------------
--  Text Settings
-------------------------------------
use_xft=true,
xftalpha=1,
font="Droid Sans:size=10",
text_buffer_size=256,
override_utf8_locale=true,


-------------------------------------
--  Color Scheme
-------------------------------------
default_color="FFFFFF",

color0="FFFFFF",  --  hours
color1="FFFFFF",  --  clock dots
color2="FFFFFF",  --  minutes
color3="FFFFFF",  --  week day
color4="FFFFFF",  --  month day
color5="FFFFFF",  --  month
color6="FFFFFF",  --  current temp
color7="FFFFFF",  --  min temp
color8="FFFFFF",  --  max temp
color9="FFFFFF",  --  current conditions


-------------------------------------
--  Icon Sources
-------------------------------------
template0="~/.jelly-conky/#fff__64",


-------------------------------------
--  API Key
-------------------------------------
template6="",


-------------------------------------
--  City ID
-------------------------------------
template7="",


-------------------------------------
--  Temp Unit (default, metric, imperial)
-------------------------------------
template8="metric",


-------------------------------------
--  Locale (e.g. "es_ES.UTF-8")
--  Leave empty for default
-------------------------------------
template9=""

}


-------------------------------------
-------------------------------------


conky.text = [[
\
\
${execi 300 ~/.jelly-conky/get_weather ${template6} ${template7} ${template8} ${template9}}\
\
\
\
\
${font Roboto :size=64}${color0}\
${alignc}${time %H}\
\
\
\
\
${font Roboto Thin :size=64}${color1}:\
\
\
\
\
${font Roboto Thin :size=64}${color2}\
${time %M}${font}${color}
\
\
\
\
${font Roboto Light :size=16}${color3}\
${voffset 12}${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%A"}${color}, \
\
\
\
\
${font Roboto :size=16}${color4}\
${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%d"}${color} \
\
\
\
\
${font Roboto Light :size=16}${color5}\
${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%B"}${font}${color}
\
\
\
\
${font Roboto Light :size=24}${color6}\
${goto 70}${voffset 18}\
${execi 300 jq ".main.temp" ~/.cache/jelly-conky/weather.json | awk '{print int($1+0.5)}' # round num}°${font}${color}
\
\
\
\
${font Roboto Light :size=12}\
${goto 70}${voffset 5}\
${color7}${execi 300 ~/.jelly-conky/parse_weather 'avg' '.main.temp_min' '0'}° ${color}| \
${color8}${execi 300 ~/.jelly-conky/parse_weather 'avg' '.main.temp_max' '0'}°${font}${color}
\
\
\
\
${font Roboto Light :size=12}${color9}\
${goto 70}${voffset 5}\
${execi 300 jq -r ".weather[0].description" ~/.cache/jelly-conky/weather.json}${font}${color}
\
\
\
\
${execi 300 cp -f ${template0}/$(jq .weather[0].id ~/.cache/jelly-conky/weather.json).png ~/.cache/jelly-conky/current.png}${image ~/.cache/jelly-conky/current.png -p 236,140 -s 64x64}\
]]
Andrea/M
Prode Principiante
 
Messaggi: 58
Iscrizione: agosto 2008

Re: Jelly Conky: problema allineamenti e icone

Messaggioda ivantu » venerdì 30 marzo 2018, 17:58

per il disallineamento
è dovuto alla dimensione del testo

mentre per il secondo file, posta qui l'output che avevo già richiesto
Codice: Seleziona tutto
conky -D -c clock--date--weather__big


p.s. ovviamente devi prima posizionarti con il terminale nella directory del tema per esempio
Codice: Seleziona tutto
cd /home/nomeutente/.jelly-conky
Buona giornata utenti del forum. :ciao: ivantu
Avatar utente
ivantu
Rampante Reduce
Rampante Reduce
 
Messaggi: 5064
Iscrizione: giugno 2013
Desktop: Lubuntu
Distribuzione: 16.04.3 LTS x86_64, 17.10 x86_64
Sesso: Maschile

Re: Jelly Conky: problema allineamenti e icone

Messaggioda Andrea/M » martedì 3 aprile 2018, 17:59

ivantu Immagine ha scritto:per il disallineamento
è dovuto alla dimensione del testo

Scusa l'ignoranza, ma come potrei utilizzare questa indicazione per risolvere il problema (nel senso se sia possibile o allineare il tutto a destra o al centro compresa icona weather)?
Per quanto riguarda l'output richiesto dovrebbe essere, se non ho capito male:
Codice: Seleziona tutto
conky -D -c .conkyrc
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/conky.cc:2685]: reading contents from config file '.conkyrc'
conky: desktop window (1000003) is subwindow of root window (291)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/x11.cc:587]: Found ARGB Visual
conky: window type - normal
conky: drawing to created window (0x1c00002)
conky: drawing to double buffer
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template6, output is '******1a753fade2aa7ef2c373bd937b'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template7, output is '3183284'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template8, output is 'metric'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template9, output is 'it_IT.UTF-8'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template9, output is 'it_IT.UTF-8'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template9, output is 'it_IT.UTF-8'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template9, output is 'it_IT.UTF-8'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template9, output is 'it_IT.UTF-8'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template9, output is 'it_IT.UTF-8'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template9, output is 'it_IT.UTF-8'
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/template.cc:157]: substituted template0, output is '~/.jelly-conky/#fff__64'
conky: forked to background, pid is 5258
andrea@andrea-System-Product-Name ~ $
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)
DEBUG(0) [/build/conky-bbQ61s/conky-1.10.1/src/imlib2.cc:196]: Drawing image '/home/andrea/.cache/jelly-conky/current.png' at (236,140) scaled to 64x64, caching interval set to 0 (with -n opt 0)

con l'ultima riga che continua a ripetersi.
Andrea/M
Prode Principiante
 
Messaggi: 58
Iscrizione: agosto 2008


Torna a Personalizzazione dell'ambiente desktop

Chi c’è in linea

Visualizzano questa sezione: 0 utenti registrati e 2 ospiti