View previous topic :: View next topic |
Author |
Message |
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Sat Jul 07, 2018 12:06 pm Post subject: |
|
|
a proposito di conky e le immagini ho letto la guida del sito ufficiale ma non ha funzionato
ho trovato questa soluzione
https://forums.gentoo.org/viewtopic-t-1035548-start-0.html
cosa dovrei fare installare questi pacchetti
Code: | imlib curl lua lua-cairo lua-imlib rss |
e aggiugerli in package.use? |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Sat Jul 07, 2018 12:30 pm Post subject: |
|
|
"lua" è un linguaggio di programmazione (conky accetta script di configurazione anche di questo linguaggio) , probabilmente ha qualche componente che gli serve.
la flags "curl" abilita il supporto per il download ed altro (curl è simile a wget)
"imlib" è una USE flag per le immagini. (se non è abilitata in conky , dovrebbe essere quella che ti manca)
Prova.
Code: | # euse -E imlib -p app-admin/conky |
riemergi conky _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Sat Jul 07, 2018 7:24 pm Post subject: |
|
|
ha aggiunto a conky quelle USE flags indicate (non sono pacchetti , ma per esser abilitate potrebbero portarsi dentro alcuni pacchetti)
rss = supporto ai feed rss di una pagina web (ne hai bisogno ? )
lua & compagnia bella : aggiunto il supporto al linguaggio LUA
curl , come indicato...
il post è del 2015 , in3 anni potrebbe esser cambiato qualcosa.
ma se provi a postare il codice utilizzato er inserire l'immagine forse ne veniamo a capo. _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Sun Jul 08, 2018 5:09 am Post subject: |
|
|
questo è il conky
nell'l'ultima riga c'è l'esempio roportato sul sito ufficiale di conky
Code: | conky.config = {
use_xft = true ,
font = '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 = 5, minimum_height = 5,
maximum_width = 1920,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
default_color = 'black',
default_shade_color = 'red',
default_outline_color = 'gray',
alignment = 'top_left',
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 = none,
own_window_argb_visual = true,
};
conky.text = [[
${voffset 30}${color E1E1E1}${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 73D216}'"$DJS"'${color E1E1E1}'" "/}
${voffset -122}${offset 220}${font monospace:pixelsize=22}${color 73D216}${exec date +%B\ %Y | sed 's/^.\| [a-z]/\U&/g'}
${voffset 20}${offset 210}${font monospace:pixelsize=60}${color DDDFFF}${time %H:%M}
${voffset -150}${offset 422}${font zoo3:pixelsize=12}${color FAFAFA}$sysname $kernel${color E1E1E1}${offset 22}Uptime: $uptime${color F2DEDE}${offset 22}TEMP ${hwmon 2 temp 1}°C${color D9EDF7}
${voffset -30}${offset 780}${fs_bar 7, 135 /}${voffset 16}${offset -138}ROOT ${offset 9}${fs_free /} / ${fs_size /}
${voffset -30}${offset 940}${fs_bar 7, 135 /home/trigg}${voffset 16}${offset -138}HOME ${offset 9}${fs_free /home/trigg} / ${fs_size /home/trigg}
${voffset -30}${offset 1100}${fs_bar 7, 135 /mnt/DATI}${voffset 16}${offset -138}DATI ${offset 22}${fs_free /mnt/DATI} / ${fs_size /mnt/DATI}
${voffset -30}${offset 1260}${swapbar 7, 135}${voffset 15}${offset -102}SWAP : $swapperc%
${voffset -14}${alignr 155}${color F2DEDE}CPU ${cpu cpu0}%${offset 21}${color DFF0D8} TEMP ${execi 20 sensors | grep "high" | cut -d "+" -f2 | cut -c1-4 } °C ${voffset -27}${offset -158}${cpugraph cpu0 17,151}
${voffset -5}${offset 1630}${color FCF8E3}RAM ${color FCF8E3} ${mem}${voffset -26}${offset -117}${memgraph 17,151}${font zoo3:pixelsize=10}
${color DDDFFF}${voffset 9}${offset 1420}${top name 1}${alignr 297}${top cpu 1}% ${freq_g 1}GHz
${color DDDFFF}${offset 1420}${top name 2}${alignr 297}${top cpu 2}% ${freq_g 2}GHz
${color DDDFFF}${offset 1420}${top name 3}${alignr 297}${top cpu 3}% ${freq_g 3}GHz
${color DDDFFF}${offset 1420}${top name 4}${alignr 297}${top cpu 4}% ${freq_g 4}GHz
${color DDDFFF}${offset 1420}${top name 5}${alignr 297}${top cpu 5}% ${freq_g 5}GHz${font zoo3:pixelsize=10}
${voffset -67}${offset 1700}${color DDDFFF}${top_mem name 1}${alignr 227}${top_mem mem_res 1}
${offset 1700}${color DDDFFF}${top_mem name 2}${alignr}${alignr 227} ${top_mem mem_res 2}
${offset 1700}${color DDDFFF}${top_mem name 3}${alignr}${alignr 227} ${top_mem mem_res 3}
${offset 1700}${color DDDFFF}${top_mem name 4}${alignr}${alignr 227} ${top_mem mem_res 4}
${offset 1700}${color DDDFFF}${top_mem name 5}${alignr}${alignr 227} ${top_mem mem_res 5}${font zoo3:pixelsize=12}
${image /home/trigg/.conky/base.png -p 20,20 -s 200x200}
]]; |
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Sun Jul 08, 2018 6:36 am Post subject: |
|
|
cosa riporta
Esempio:
Code: | conky -v
conky 1.10.8 compiled Fri May 18 15:53:24 UTC 2018 for Linux 4.9.0-sabayon x86_64
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib64/conky
General:
* hddtemp
* portmon
* IRC
* Curl
* RSS
* iconv
* Weather (METAR)
* Weather (XOAP)
* wireless
* support for IBM/Lenovo notebooks
* builtin default configuration
* Imlib2
* iostats
* ncurses
* Internationalization support
* PulseAudio
Lua bindings:
* Cairo
* Imlib2
X11:
* Xdamage extension
* Xinerama extension (virtual display)
* Xshape extension (click through)
* XDBE (double buffer extension)
* Xft
* ARGB visual
* Own window
Music detection:
* MPD
Default values:
* Netdevice: eth0
* Local configfile: $HOME/.conkyrc
* Localedir: /usr/share/locale
* Maximum netdevices: 64
* Maximum text size: 16384
* Size text buffer: 256
|
Ha il supporto immagini
* Imlib2
controlla anche il supporto delle USE di media-libs/imlib2
Esempio :
Code: | $ $ equery u imlib2
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-libs/imlib2-1.5.1:
U I
+ + X : Add support for X11
+ + abi_x86_32 : 32-bit (x86) libraries
+ + bzip2 : Use the bzlib compression library
+ + cpu_flags_x86_sse2 : Use the SSE2 instruction set
+ + gif : Add GIF image support
+ + jpeg : Add JPEG image support
+ + mp3 : Add support for reading mp3 files
+ + nls : Add Native Language Support (using gettext - GNU locale utilities)
+ + png : Add support for libpng (PNG images)
- - static-libs : Build static versions of dynamic libraries as well
+ + tiff : Add support for the TIFF image format
+ + zlib : Add support for zlib (de)compression |
_________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Sun Jul 08, 2018 8:44 am Post subject: |
|
|
conky -v
Code: | trigg@gentoo ~ $ conky -v
conky 1.10.8 compiled lun 2 lug 2018, 16.08.36, CEST for Linux 4.14.52-gentoo x86_64
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib64/conky
General:
* portmon
* IPv6
* iconv
* builtin default configuration
* ncurses
* Internationalization support
X11:
* Xdamage extension
* Xinerama extension (virtual display)
* Xshape extension (click through)
* XDBE (double buffer extension)
* Xft
* ARGB visual
* Own window
Default values:
* Netdevice: eth0
* Local configfile: $HOME/.conkyrc
* Localedir: /usr/share/locale
* Maximum netdevices: 64
* Maximum text size: 16384
* Size text buffer: 256
trigg@gentoo ~ $ |
equery u imlib2
Code: | trigg@gentoo ~ $ equery u imlib2
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-libs/imlib2-1.4.9:
U I
+ + X : Add support for X11
- - abi_x86_32 : 32-bit (x86) libraries
+ + bzip2 : Use the bzlib compression library
+ + cpu_flags_x86_sse2 : Use the SSE2 instruction set
- - doc : Add extra documentation (API, Javadoc, etc). It is recommended to
enable per package instead of globally
+ + gif : Add GIF image support
+ + jpeg : Add JPEG image support
+ + mp3 : Add support for reading mp3 files
+ + nls : Add Native Language Support (using gettext - GNU locale utilities)
+ + png : Add support for libpng (PNG images)
- - static-libs : Build static versions of dynamic libraries as well
+ + tiff : Add support for the TIFF image format
+ + zlib : Add support for zlib (de)compression
trigg@gentoo ~ $ |
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Sun Jul 08, 2018 8:54 am Post subject: |
|
|
su "General" non hai il supporto a imlib2 che è quello che ti serve
sei sicuro di aver abilitato "imlib" per conky ?
Controlla, dovresti avere qualcosa tipo,
Code: | $ equery h imlib
* Searching for USE flag imlib ...
[IP-] [ ] app-admin/conky-1.10.8-r1:0
|
_________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Sun Jul 08, 2018 9:31 am Post subject: |
|
|
ho questo
Code: | trigg@gentoo ~ $ equery h imlib
* Searching for USE flag imlib ...
[IP-] [ ] app-admin/conky-1.10.8-r1:0
[IP-] [ ] www-client/w3m-0.5.3_p20180125:0
trigg@gentoo ~ $ |
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Sun Jul 08, 2018 10:03 am Post subject: |
|
|
perchè in alcuni output dice
* Found these USE flags for media-libs/imlib2-1.5.1:
e poi
* Found these USE flags for media-libs/imlib2-1.4.9:
hai fatto un su e giù di versione ? _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Sun Jul 08, 2018 10:09 am Post subject: |
|
|
l'unica cosa che ricordo di aver fatto con conky è stata di installare prima la
versione normale con emerge --ask conky
di averla disinstallata con emerge -unmerge conky
e di aver installato la versione di portage overlays per provare lo script |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Sun Jul 08, 2018 3:25 pm Post subject: |
|
|
trigg wrote: | l
e di aver installato la versione di portage overlays per provare lo script |
quale overlay esattamente ?
per installare un pacchetto da un overlay non sempre è necessario disisnstallarlo
basta dare :
Code: | # emerge <nome-pacchetto>::<nome-overlay> |
esempio del conky dall'oerlay di funtoo
Code: | # emerge conky::funtoo |
installerà l'ultima versione disponibile per la tua keyworkd dall'overlay funtoo (sempre se non è slottatata)
oppure una versione specifica se presente più di una
Code: | # emerge =conky-1.10.6-r2::funtoo |
Ti ricordo che gli overlay sono dei repository di terze parti ed il loro mantenimento è seguito dai loro proprietari (o da chi loro abilitati) , se non più mantenuti/aggiornati potrebbero nel tempo creare problemi con gli aggionamenti _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Sun Jul 08, 2018 3:50 pm Post subject: |
|
|
non ricordo quale versione
questa è la versione che ho installato
Code: | * app-admin/conky
Latest version available: 1.10.8-r1
Latest version installed: 1.10.8-r1
Size of files: 365 KiB
Homepage: https://github.com/brndnmtthws/conky
Description: An advanced, highly configurable system monitor for X
License: GPL-3 BSD LGPL-2.1 MIT
|
ps non ho usato overlay per l'installazione
ho scaricato l'ebuild
creato manifest
installato il pacchetto |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Mon Jul 09, 2018 3:38 pm Post subject: |
|
|
lho reinstallato conky prima disintallandolo dopo
provando il comando Code: | time MAKEOPTS="-j4" emerge --ask app-admin/conky | che mi incuriosiva
e adesso posso aggiungere le immagini
https://i.imgur.com/LZO6sIz.png
questo è il file conky in /etc/portage/package.use
Code: | GNU nano 2.8.7 File: conky
app-admin/conky imlib png gif mp3 jpeg X imlib2 |
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Mon Jul 09, 2018 5:33 pm Post subject: |
|
|
le USE per conky al momento sono queste :
Code: | equery u conky
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for app-admin/conky-1.10.8-r1:
U I
+ + X : Add support for X11
- - apcupsd : Enable support for sys-power/apcupsd
- - cmus : Enable monitoring of music played by media-sound/cmus
- - curl : Add support for client-side URL transfer library
- - eve : Enable support for the eve-online skill monitor
+ + hddtemp : Enable monitoring of hdd temperature (app-admin/hddtemp)
- - ical : Enable support for events from iCalendar (RFC 5545) files using dev-libs/libical
+ + iconv : Enable support for the iconv character set conversion library
+ + imlib : Add support for imlib, an image loading and rendering library
+ + iostats : Enable support for per-task I/O statistics
- - ipv6 : Add support for IP version 6
+ + irc : Enable support for displaying everything from an irc channel using net-libs/libircclient
+ + lua-cairo : Enable if you want Lua Cairo bindings
+ + lua-imlib : Enable if you want Lua Imlib2 bindings
- - lua-rsvg : Enable if you want Lua RSVG bindings
- - math : Enable support for glibc's libm math library
- - moc : Enable monitoring of music played by media-sound/moc
+ + mpd : Enable monitoring of music controlled by media-sound/mpd
- - mysql : Add mySQL Database support
- - nano-syntax : Enable syntax highlighting for app-editors/nano
+ + ncurses : Add ncurses support (console display library)
- - nvidia : Enable reading of nvidia card temperature sensors via media-video/nvidia-settings
+ + portmon : Enable support for tcp (ip4) port monitoring
+ + pulseaudio : Add support for PulseAudio sound server
+ + rss : Enable support for RSS feeds
+ + systemd : Enable use of systemd-specific libraries and features like socket activation or session tracking
+ + thinkpad : Enable support for IBM/Lenovo notebooks
+ + truetype : Add support for FreeType and/or FreeType2 fonts
- - vim-syntax : Pulls in related vim syntax scripts
+ + weather-metar : Enable support for metar weather service
+ + weather-xoap : Enable support for metar and xoap weather service
- - webserver : Enable support to act as a webserver serving conkys output using net-libs/libmicrohttpd
+ + wifi : Enable wireless network functions
- - xmms2 : Enable monitoring of music played by media-sound/xmms2 |
quelle indicate da te e non presenti , non hanno alcun effetto.
semmai sono USE utilizzate da imlib e imlib2 _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Mon Jul 09, 2018 5:55 pm Post subject: |
|
|
ok sabayonino ,
secondo te e mi affido alla tua esperienza adesso che non mi da piu errore nel leggere $image
cosa dovrei fare ?
mettere mettere
dove c'è --
e solo dove c'è ++ ? |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Mon Jul 09, 2018 5:59 pm Post subject: |
|
|
la scelta delle USE è personale e dipende dalle funzioni che si vogliono aggiungere al pacchetto.
Se per ora non hai altre esigenze non sei obbligato ad abilitare tutte le USE
Abilitando funzioni di cui non potrai aver bisogno non fa altro che aumentare le dimensioni del binario (e dell'utilizzo in memoria , non che conky consumi chissà cosa) e dello spazio su disco per le ulteriori librerie richieste. _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Mon Jul 09, 2018 7:52 pm Post subject: |
|
|
ho messo le USE che potrebbero fare al caso mio
Code: | app-admin/conky imlib X imlib2 hddtemp iconv |
non ho trovato quella che mi visualizza le icone della scrivania
vabbè di solito non le uso ma a qualcuno potrebbero servire cmq
questo è il mio conky che sto modificando per gentoo
[img]https://imgur.com/aHXoteUl.png[/img]
lo posterò quando sarà terminato nel forum di discussione italia |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Tue Jul 10, 2018 5:03 pm Post subject: |
|
|
Adesso mi devi togliere una curiosità...
cosa inetndi per "icone" nel conky
Le icone nella scrivania di xfce non centrano nulla con conky. assolutamente nulla ma c'è una opzione da qualche parte nelle preferenze di Xfce
Click DX sula scrivania-->impstazioni scrivania..>scheda icone (qui puoi abilitare quelle "speciali" o giocare con gli altri elementi
Se ne vuoi aggiungere altre basta aprire il file manager andare sulla cartella Desktop e crearle (oppure trascinarle/crearle sul desktop)
https://imageshack.com/a/img924/9968/ms1bor.png _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1008
|
Posted: Tue Jul 10, 2018 5:50 pm Post subject: |
|
|
cavolo , e fallo capire prima no ?
questo è nel tuo conkyrc
Code: | --own_window = true,
--own_window_type = override,
--own_window_class = none,
--own_window_transparent = false,
--own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_colour = 1c1c1c,
--own_window_argb_value = 0, |
"--" sono di troppo mi sa. se volevi commentarli : "#" _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
trigg Apprentice
Joined: 14 Jun 2018 Posts: 179
|
Posted: Tue Jul 10, 2018 6:47 pm Post subject: |
|
|
grazie Sabayonino finalmente
https://i.imgur.com/Az0Lh3C.png
però è strano perchè il conkyrc è molto simile a quello di arch-linux quando l'ho provato la prima volta mi dava syntax-error ed ho dovuto modificare conkyrc
mettendo --davanti ad own-windows
sono piu che certo di aver installato male conky la prima volta
vabbè rimuovo il link con il download el conky e carico il nuovo conky senza bug
grazie ^_^ |
|
Back to top |
|
|
|