Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO]conky
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 9:04 am    Post subject: [RISOLTO]conky Reply with quote

Buongiorno
sono ormai giorni che ci sbatto la testa cercando di evitare di scrivere qui sul forum...
vorrei un desktop carino, un widget trasparente dove mi indica le solite cose ram cpu hd ecc ecc

ogni script che ho provato però mi ha dato problemi

schermi neri
conky non si avvia
ma la maggior parte delle volte ricevo questo tipo di risultato

Code:
~ $ conky
conky: Syntax error (/home/spakkabyte/.conkyrc:2: unexpected symbol near '#') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (2e00009) is subwindow of root window (254)
conky: window type - override
conky: drawing to created window (0x2c00001)
conky: drawing to double buffer
conky: unknown variable '$hddtemp'
conky: statfs64 '/windows': File o directory non esistente
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Serial number of failed request:  127
  Current serial number in output stream:  128


qualcuno riesce ad aiutarmi?
se avete meglio da consigliarmi ben venga :)


Last edited by SpakkaByTe on Mon Feb 20, 2017 2:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Mon Feb 20, 2017 9:08 am    Post subject: Reply with quote

Puoi postare il tuo conkyrc?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 9:11 am    Post subject: Reply with quote

fedeliallalinea wrote:
Puoi postare il tuo conkyrc?


http://pastebin.com/sv9wgyWN
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Mon Feb 20, 2017 9:33 am    Post subject: Reply with quote

E' da un po' che non uso conky, il problema sembra che e' cambiata la sintassi del file di configurazione.
Prova a scaricare il converter da qua
Code:
$ wget https://raw.githubusercontent.com/brndnmtthws/conky/master/extras/convert.lua
$ chmod +x  convert.lua
$ cp .conkyrc .conkyrc.bak
$ ./convert.lua .conkyrc conkyrc_new
$ mv conkyrc_new .conkyrc

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 9:45 am    Post subject: Reply with quote

fedeliallalinea wrote:
E' da un po' che non uso conky, il problema sembra che e' cambiata la sintassi del file di configurazione.
Prova a scaricare il converter da qua
Code:
$ wget https://raw.githubusercontent.com/brndnmtthws/conky/master/extras/convert.lua
$ chmod +x  convert.lua
$ cp .conkyrc .conkyrc.bak
$ ./convert.lua .conkyrc conkyrc_new
$ mv conkyrc_new .conkyrc


ho tolto alcune righe visto che non ho windows come partizione ma il risultato e sempre

Code:
conky
conky: desktop window (2e00009) is subwindow of root window (254)
conky: window type - override
conky: drawing to created window (0x4800001)
conky: drawing to double buffer
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Serial number of failed request:  142
  Current serial number in output stream:  143
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Mon Feb 20, 2017 9:57 am    Post subject: Reply with quote

Prova a cambiare da
Code:
own_window_type = override

a
Code:
own_window_type = normal

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 10:13 am    Post subject: Reply with quote

fedeliallalinea wrote:
Prova a cambiare da
Code:
own_window_type = override

a
Code:
own_window_type = normal


wow ci siamo quasi
le trasparenze non ci sono però

https://postimg.org/image/h8x6dztmn/
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Mon Feb 20, 2017 10:21 am    Post subject: Reply with quote

Prova a sostituire tutti le proprieta own_window con queste:
Code:
own_window = true,
own_window_class = 'Conky',
own_window_type = 'normal',
own_window_colour=black,
own_window_transparent=false,
own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_transparent = true,

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 11:18 am    Post subject: Reply with quote

ci sto per rinunciare ^^
perchè non esiste conky manager su gentoo?
non esiste qualcosa di piu semplice?
Back to top
View user's profile Send private message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 11:33 am    Post subject: Reply with quote

sono arrivato ad un buon risultato ma come si vede dal immagine e illeggibile

https://postimg.org/image/hgo17yh2n/
Back to top
View user's profile Send private message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 11:47 am    Post subject: Reply with quote

cambiando sfondo
https://postimg.org/image/cr6699wsr/

il problema ora e
vorrei togliere la finestra ridimensionabile in modo che il tutto resti fisso sul desktop
poi da come si vede in foto la parte sotto non si vede
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Mon Feb 20, 2017 12:11 pm    Post subject: Reply with quote

Puoi postare ancora una volta il tuo conkyrc (ora che e' modificato)?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 12:45 pm    Post subject: Reply with quote

http://pastebin.com/VEzLva3H
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Mon Feb 20, 2017 12:51 pm    Post subject: Reply with quote

Ma non hai modificato gli own_window come ti ho detto.
Prova questa configurazione con gli own_window che ti avevo detto e convertito nel nuovo formato.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
SpakkaByTe
n00b
n00b


Joined: 22 Jan 2017
Posts: 26

PostPosted: Mon Feb 20, 2017 2:42 pm    Post subject: Reply with quote

https://postimg.org/image/vb3r8zv41/
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Mon Jul 02, 2018 3:03 pm    Post subject: Reply with quote

ho seguito questo topic e per non aprire un'altro lo continuo

modificando il conky come indicato da fedeli alla linea il conky (almeno il mio) funziona in parte

l'unica cosa che non va sono

il valore di use_spacer
Code:
conky: Invalid value of type 'boolean' for setting 'use_spacer'. Expected value of type 'string'.


l sensore di temperatura
Code:
sh: sensors: comando non trovato


le immagini
Code:
 conky: unknown variable '$image'


per il sensore devo ricrodare il pacchetto da installare per le immagini e il valore di use_space , non ho trovato nulla in rete

questo è il conkyrc

Code:
conky.config = {
use_xft = true ,
xftfont = '123:size=5',
xftalpha = 0.1,
update_interval = 1,
total_run_times = 0,

--own_window = true,
--own_window_type = 'normal',
--own_window_transparent = false,
--own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_colour = 1c1c1c,
--own_window_argb_value = 255,

double_buffer = true,
minimum_width = 650, minimum_height = 997,
maximum_width = 400,
draw_shades = false,
draw_outline = false,
draw_borders = true,
draw_graph_borders = false,
default_color = 'black',
default_shade_color = 'red',
default_outline_color = 'gray',
alignment = 'top_right',
gap_x = 25,
gap_y = 25,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 1,
override_utf8_locale = true,
use_spacer = true,



own_window_argb_visual = false,
};
conky.text = [[
${voffset 30}${color ffc000}${font monospace:size=10}${execpi 60 DJS=`date +%_d`;cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${offset 15} /' | sed /" $DJS "/s/" $DJS "/" "'${color green}'"$DJS"'${color ffa300}'" "/}
${voffset -122}${offset 210}${font monospace:pixelsize=22}${color green}${exec date +%B\ %Y | sed 's/^.\| [a-z]/\U&/g'}
${voffset 20}${offset 210}${font monospace:pixelsize=60}${color 3273b5}${time %H:%M}
${voffset -45}${offset 22}${font zoo3:pixelsize=12}${color fff}$sysname $kernel${color C0E074}${offset 22}Uptime: $uptime${color orange}${alignr 11 }TEMP ${hwmon 2 temp 1}°C${color 3299c9}
${voffset 10}${offset 20}ROOT ${offset 9}${fs_free /} / ${fs_size /}${voffset 15}${offset -144}${fs_bar 7, 135 /}
${voffset -30}${offset 230}HOME ${fs_free /home/trigg} / ${fs_size /home/trigg}${voffset 15}${offset -144}${fs_bar 7, 135 /home/trigg}
${voffset 20}${offset 28}DATI ${offset 9}${fs_free /mnt/DATI} / ${fs_size /mnt/DATI}${voffset 15}${offset -140}${fs_bar 7, 135 /mnt/DATI}
${voffset -30}${offset 270}SWAP : $swapperc%${voffset 15}${offset -102}${swapbar 7, 135}
${image   /home/trigg/.conky/trigg/trigghdh.png  -p 15,160}${image   /home/trigg/.conky/trigg/trigghdh.png  -p 220,160}${image   /home/trigg/.conky/trigg/trigghdh.png  -p 15,210}${image   /home/trigg/.conky/trigg/trigghdh.png  -p 220,210}

${image   /home/trigg/.conky/trigg/triggbasecpu.png  -p 15,269 }${image   /home/trigg/.conky/trigg/triggbaseram.png  -p 220,269 }
${voffset -10}${offset 28}${color cF4110}CPU ${cpu cpu0}%${alignr 325}${color cF4110}  Temp ${execi 20 sensors | grep "high" | cut -d "+" -f2 | cut -c1-4 } °C ${voffset 25}${alignr 218}${cpugraph cpu0 35,151}${font zoo3:pixelsize=10}   
${color FF4040}${voffset -7}${offset 22}${top name 1}${alignr 227}${top cpu 1}%  ${freq_g 1}GHz
${color FF8080}${offset 22}${top name 2}${alignr 227}${top cpu 2}%  ${freq_g 2}GHz
${color FF9F9F}${offset 22}${top name 3}${alignr 227}${top cpu 3}%  ${freq_g 3}GHz
${color FFC0B6}${offset 22}${top name 4}${alignr 227}${top cpu 4}%  ${freq_g 4}GHz
${color FFE1DC}${offset 22}${top name 5}${alignr 227}${top cpu 5}%  ${freq_g 5}GHz${font zoo3:pixelsize=12}
${voffset -136}${offset 265}${color F4E064}RAM ${color F4E064} ${mem}${voffset 25}${offset -120}${memgraph 35,151}${font zoo3:pixelsize=10}
${voffset -7}${offset 227}${color FFE118}${top_mem name 1}${alignr 22}${top_mem mem_res 1}
${offset 227}${color FFFF00}${top_mem name 2}${alignr}${alignr 22}  ${top_mem mem_res 2}
${offset 227}${color FFFF35}${top_mem name 3}${alignr}${alignr 22}  ${top_mem mem_res 3}
${offset 227}${color FFFF80}${top_mem name 4}${alignr}${alignr 22}  ${top_mem mem_res 4}
${offset 227}${color FFFFC2}${top_mem name 5}${alignr}${alignr 22}  ${top_mem mem_res 5}

${image   /home/trigg/.conky/trigg/triggdw.png  -p 12,432 }${image   /home/trigg/.conky/trigg/triggup.png  -p 211,432 }${font zoo3:pixelsize=12}
${color 07C4C4}${offset 28}Download ${alignr 228} ${downspeedf  enp2s0} KiB/s
${color C6F7D2}${voffset -15}${offset 228}Upload ${color C6F7D2}${alignr 30} ${upspeedf enp2s0} KiB/s
${offset 18}${color 07C4C4}${downspeedgraph  enp2s0 32, 164}${offset 36}${color C6F7D2}${upspeedgraph enp2s0 32, 164}

${image   /home/trigg/.conky/trigg/trigghdh.png  -p 15,505}${image   /home/trigg/.conky/trigg/trigghdh.png  -p 15,555}${image   /home/trigg/.conky/trigg/trigghdh.png  -p 15,605}${image   /home/trigg/.conky/trigg/trigghdh.png  -p 220,505}${image   /home/trigg/.conky/trigg/trigghdh.png  -p 220,555}${image   /home/trigg/.conky/trigg/trigghdh.png  -p 220,605}${color 3299c9}
${voffset -22}${offset 30}USB DISK ${if_mounted /run/media/tom/USB DISK}${alignr 115}${fs_type /run/media/tom/USB DISK}${voffset 11}${offset -130}${fs_bar 3,115 /run/media/tom/USB DISK}
${voffset -5}${offset 30}${fs_used /run/media/tom/USB DISK}${color 7FFFD4}${alignr 222}${fs_free /run/media/tom/USB DISK} ${color 3299c9}
${voffset 14}${offset 30}TOSHIBA ${if_mounted /run/media/tom/TOSHIBA EXT}${alignr 115}${fs_type /run/media/tom/TOSHIBA EXT}${voffset 11}${offset -130}${fs_bar 3,115 /run/media/tom/TOSHIBA EXT}
${voffset -5}${offset 30}${fs_used /run/media/tom/TOSHIBA EXT}${color 7FFFD4}${alignr 222}${fs_free /run/media/tom/TOSHIBA EXT} ${color 3299c9}
${voffset -86}${offset 236}TERA ${if_mounted /run/media/tom/1TB}${alignr 26}${fs_type /run/media/tom/1TB}
${voffset -4}${alignr 40}${fs_bar 3,115 /run/media/tom/1TB}
${voffset -5}${offset 236}${fs_used /run/media/tom/1TB}${color 7FFFD4}${alignr 18}${fs_free /run/media/tom/1TB} ${color 3299c9}
${voffset 14}${offset 236}STICK ${if_mounted /run/media/tom/2BA2-11DB}${alignr 26}${fs_type /run/media/tom/2BA2-11DB}
${voffset -4}${alignr 40}${fs_bar 3,115 /run/media/tom/2BA2-11DB}
${voffset -5}${offset 236}${fs_used /run/media/tom/2BA2-11DB}${color 7FFFD4}${alignr 18}${fs_free /run/media/tom/2BA2-11DB} ${color 3299c9}
${voffset 14}${offset 236}MINT ${if_mounted /run/media/tom/2d368d934-3b88-45b9-81d3-d4ff7df1b551}${alignr 26}${fs_type /run/media/tom/d368d934-3b88-45b9-81d3-d4ff7df1b551}
${voffset -4}${alignr 40}${fs_bar 3,115 /run/media/tom/d368d934-3b88-45b9-81d3-d4ff7df1b551}
${voffset -5}${offset 236}${fs_used /run/media/tom/d368d934-3b88-45b9-81d3-d4ff7df1b551}${color 7FFFD4}${alignr 18}${fs_free /run/media/tom/d368d934-3b88-45b9-81d3-d4ff7df1b551} ${color 3299c9}
${voffset -37}${offset 30}CLD ${if_mounted /run/media/tom/CLD-17.12.2}${alignr 115}${fs_type /run/media/tom/CLD-17.12.2}${voffset 11}${offset -130}${fs_bar 3,115 /run/media/tom/CLD-17.12.2}
${voffset -5}${offset 30}${fs_used /run/media/tom/CLD-17.12.2}${color 7FFFD4}${alignr 222}${fs_free /run/media/tom/CLD-17.12.2} ${color 3299c9}
${image   /home/trigg/.conky/trigg/xfce.png -p 30,760 }${font zoo3:pixelsize=16}${image   /home/trigg/.conky/trigg/f9.png -p 0,695 }${image   /home/trigg/.conky/trigg/f10.png -p 101,695 }${image   /home/trigg/.conky/trigg/f11.png -p 202,695 }${image   /home/trigg/.conky/trigg/f12.png -p 303,695 }${image   /home/trigg/.conky/trigg/f1.png -p 150,739 }${image   /home/trigg/.conky/trigg/sbloc.png -p 303,739 }${image   /home/trigg/.conky/trigg/bloc.png -p 0,739 }${font zoo3:pixelsize=16}${color 086e39}
${alignc}_____________SCORCIATOIE_____________${font zoo3:pixelsize=12}
#110 66
]];
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Mon Jul 02, 2018 4:20 pm    Post subject: Reply with quote

trigg wrote:
il valore di use_spacer
Code:
conky: Invalid value of type 'boolean' for setting 'use_spacer'. Expected value of type 'string'.

Questo valore puo' essere 'left', 'right', o 'none' (vedi doc)

trigg wrote:
l sensore di temperatura
Code:
sh: sensors: comando non trovato

Ti serve il pacchetto sys-apps/lm_sensors

trigg wrote:
le immagini
Code:
 conky: unknown variable '$image'

Prova ad abilitare la use flag imlib di conky
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Mon Jul 02, 2018 6:32 pm    Post subject: Reply with quote

echo "app-admin/conky imlib" >> /etc/portage/package.use/conky

dovrebbe essere così
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Mon Jul 02, 2018 6:41 pm    Post subject: Reply with quote

trigg wrote:
echo "app-admin/conky imlib" >> /etc/portage/package.use/conky

dovrebbe essere così

Esatto! :D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Mon Jul 02, 2018 6:50 pm    Post subject: Reply with quote

sto imparando :o

però continua a dare quel tipo di messaggio riguardo l'immagine :roll:

devo rialineare un po di informazioni e vabbè me lo son fatto io ^_^
e da così
https://i.imgur.com/WSURNRu.png



deve essere così

https://i.imgur.com/1mMAzae.png

ho l'idea di farlo con i colori di gentoo , però devo capire come visualizzare le immagini
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Mon Jul 02, 2018 8:19 pm    Post subject: Reply with quote

E' parecchio tempo che non smanetto con conky , ma ad occhio ci sono troppi spazi all'interno dei campi (vengono calcolati anche quelli)
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Tue Jul 03, 2018 6:20 am    Post subject: Reply with quote

forse ho trovato qualcosa

Code:
*  media-libs/imlib
      Latest version available: 1.9.15-r5
      Latest version installed: [ Not Installed ]
      Size of files: 670 KiB
      Homepage:      http://ftp.acc.umu.se/pub/GNOME/sources/imlib/1.9/
      Description:   Image loading and rendering library
      License:       GPL-2

*  media-libs/imlib2
      Latest version available: 1.4.9
      Latest version installed: 1.4.9
      Size of files: 1005 KiB
      Homepage:      https://www.enlightenment.org/
      Description:   Version 2 of an advanced replacement library for libraries like libXpm
      License:       BSD


imlib non è installato
cosa mi consigliate di fare
installare imlib o aggiungere use.flag imil2 a conky?

per il conky sisitemrò gli spazi e quando ci rimetterò mano cercherò di renderlo più snello

inoltre ho trovato questa soluzione in russo che non riesco a capire nenahce con google trnalsator
http://www.gentoo.ru/node/21731
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Tue Jul 03, 2018 8:26 am    Post subject: Reply with quote

trigg wrote:
imlib non è installato
cosa mi consigliate di fare
installare imlib o aggiungere use.flag imil2 a conky?

Se hai attivato la use flag imlib a conky deovresti avere installato imlib2, prova a vedere con il comando qlist -Iv imlib.
Comunque e' sempre meglio attivare la use flag cosi' se un giorno disinstalli conky depclean ti disinstallera' anche imlib se usata solo da conky; se invece la installi manualmente verra' registrata nel world file e per disinstallarla dovrai farlo a mano.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Tue Jul 03, 2018 8:44 am    Post subject: Reply with quote

Code:
media-libs/imlib2-1.4.9
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30889
Location: here

PostPosted: Tue Jul 03, 2018 9:46 am    Post subject: Reply with quote

Quindi e' installato. Prova a togliere gli spazi come suggerito da sabayonino
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum