You are not logged in.

#2401 2025-09-11 00:30:19

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 845

Re: Show us your conky

@unklar

We've seen it before - German umlauts.
I assume your current OS is different now and you are getting German letters in the album_cover file.

In this case, a different approach is needed:

  test1=$(audtool current-song-tuple-data title | awk -F' - ' '{print $1}' | sed 's/é/e/g' | sed 's/Ä/A/g' | sed 's/ä/a/g' | sed 's/Ö/O/g' | sed 's/ö/o/g' | sed 's/Ü/U/g' | sed 's/ü/u/g' | sed 's/ẞ/SS/g' | sed 's/ß/ss/g')
  
  test2=$(audtool current-song-tuple-data title | awk -F' - ' '{print $2}' | sed 's/é/e/g' | sed 's/Ä/A/g' | sed 's/ä/a/g' | sed 's/Ö/O/g' | sed 's/ö/o/g' | sed 's/Ü/U/g' | sed 's/ü/u/g' | sed 's/ẞ/SS/g' | sed 's/ß/ss/g')

I can't test.
If there is a problem, please show me the contents of the album_cover file in the code tags.

If it works, I will try to fix the problem so that the script works in both cases.
I checked the terminal output and there are no errors:

$ conky -c $HOME/.conky/Audacious/Audacious-stream-conky
....
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (60008d) is subwindow of root window (3f0)
conky: window type - desktop
conky: drawing to created window (0x2a00001)
conky: drawing to double buffer
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    76  100    76    0     0    135      0 --:--:-- --:--:-- --:--:--   135
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 54984  100 54984    0     0   475k      0 --:--:-- --:--:-- --:--:--  475k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    76  100    76    0     0    164      0 --:--:-- --:--:-- --:--:--   164
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 32828  100 32828    0     0   299k      0 --:--:-- --:--:-- --:--:--  299k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    76  100    76    0     0    140      0 --:--:-- --:--:-- --:--:--   140
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27549  100 27549    0     0   249k      0 --:--:-- --:--:-- --:--:--  249k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    76  100    76    0     0    186      0 --:--:-- --:--:-- --:--:--   187
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27527  100 27527    0     0   208k      0 --:--:-- --:--:-- --:--:--  208k
^Cconky: received SIGINT or SIGTERM to terminate. bye!

EDIT
This is my Audacious-stream-conky (in the middle):

Chase Matthew  -  Love You Again
audacious-stream-conky.png

Last edited by marens (2025-09-11 01:22:40)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2402 2025-09-11 09:00:52

loutch
Member
Registered: 2015-12-12
Posts: 859

Re: Show us your conky

Hello

jV8scReG_t.png

@+

Last edited by loutch (2025-09-11 14:00:41)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2403 2025-09-12 07:21:12

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

@marens, thanks!

I'm still testing with the previous version, i.e. the one I posted above.
That's OK.

Rod Stewart
I Can't Imagine

Gotthard
Janie's Not Alone

Andryy
Wänn du da bisch

That's not OK.

eà
Next To You

Carole King
Hard Rock Café

(From the album_cover files in each case)

When the track with the error in the terminal is over and the next one starts, the cover changes correctly.

Now I've added the lines you posted to the script. Let's wait and see...

PS. Regarding the incorrectly found album covers, do you think it would help if the search were based on the criteria used by the website?
The script searches in this order:
artist - title
The website uses this pattern:
title - artist
Where would that need to be changed?

Last edited by unklar (2025-09-12 07:25:14)

Offline

#2404 2025-09-12 07:41:23

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

First result with your new lines.
20250912-09h36m28s-grim.png

Florian Ast
Trane

Edit:
That wouldn't bother me: Trane - Träne
as long as the error doesn't occur in the terminal.

Besides, I've decided to display 300x300. So I don't have to read the result in album_cover again with awk or sed.  wink

Last edited by unklar (2025-09-12 07:45:44)

Offline

#2405 2025-09-12 07:53:48

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

That's such a ‘false’ mistake:
20250912-09h48m14s-grim.png

Pearlbreakers
There Is Something About You

where I think the search order is wrong.

Offline

#2406 2025-09-12 08:25:26

loutch
Member
Registered: 2015-12-12
Posts: 859

Re: Show us your conky

Hello

I need your help again, i would like to include this  image and make it transparent.

Capture-d-cran-2025-09-11-14-34-37.png

from this page https://www.boursorama.com/bourse/indices/cours/1rPCAC/ in my conky like this (it's a fake)

Capture-d-cran-2025-09-12-10-24-44.png.

Many tanks .


@+

Last edited by loutch (2025-09-12 08:41:21)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2407 2025-09-12 12:36:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 845

Re: Show us your conky

unklar wrote:

First result with your new lines.
https://i.postimg.cc/kDkc90PV/20250912-09h36m28s-grim.png

Florian Ast
Trane

Edit:
That wouldn't bother me: Trane - Träne
as long as the error doesn't occur in the terminal.

Besides, I've decided to display 300x300. So I don't have to read the result in album_cover again with awk or sed.  wink

Nice.
No more German umlauts.

1) Create a file album_cover_orig in the same folder
2) Add below the lines echo $test1/$test2:

  echo $test1 > $HOME/.config/conky/Audacious/album_cover
  echo $test2 >> $HOME/.config/conky/Audacious/album_cover
  
  audtool current-song-tuple-data title | awk -F' - ' '{print $1}' > $HOME/.config/conky/Audacious/album_cover_orig
  audtool current-song-tuple-data title | awk -F' - ' '{print $2}' >> $HOME/.config/conky/Audacious/album_cover_orig

You now have the original German title in the file album_cover_orig.
Can be easily used in Conky.

unklar wrote:

where I think the search order is wrong.

No, everything is fine.
First line Artist, then Title.

In general:
Finding album art is no easy task.
There is no source that has everything in the collection (archive).
The source has its own search algorithm and I, as the author of the script, cannot change anything except entering the data correctly.

If you listen to a local radio station (Radio Swiss Pop) with many local artists, it is expected that you will sometimes get false results.

The same thing happens to me, but the next song is coming soon.  smile

Last edited by marens (2025-09-12 13:02:20)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2408 2025-09-13 00:42:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 845

Re: Show us your conky

@unklar

I think you're a happy man.
After visiting the Radio Swiss Pop website, I tried to "steal" the album cover.

I succeeded.

1) Copy the file (script) ~/.config/conky/Audacious/audacious-stream and Paste it into the same folder

2) Rename the copy to audacious-stream-swiss-pop (script)

3) Open ~/.config/conky/Audacious/audacious-stream-swiss-pop and find the lines:

  echo $test1 > $HOME/.config/conky/Audacious/album_cover
  echo $test2 >> $HOME/.config/conky/Audacious/album_cover

4) Delete everything below to the end.

5) Then add new code (it should look like this):

  echo $test1 > $HOME/.config/conky/Audacious/album_cover
  echo $test2 >> $HOME/.config/conky/Audacious/album_cover
  
  artist=$(audtool current-song-tuple-data title | awk -F' - ' '{print $1}')
  title=$(audtool current-song-tuple-data title | awk -F' - ' '{print $2}')  
  
  echo $artist > $HOME/.config/conky/Audacious/album_cover_orig
  echo $title >> $HOME/.config/conky/Audacious/album_cover_orig
  
  if [[ "$test1" == "" && "$test2" == ""  ]]; then
 
     cp $HOME/.config/conky/Audacious/headphone.png $HOME/.config/conky/Audacious/album_art.png
   
  else

    wget -O "$HOME/.config/conky/Audacious/radio_raw" --user-agent=”Mozilla” "https://www.radioswisspop.ch/en"
    
    cat $HOME/.config/conky/Audacious/radio_raw | grep -o '[ ^]<img src="https://cdne-satr-prd-rsp-covers.azureedge.net[^ ]*' | sed 's/ <img src="//g' | sed 's/"//g' | sed 's/net\/50/net\/350/g' > $HOME/.config/conky/Audacious/image
  
    album_art=$(sed -n '6p' $HOME/.config/conky/Audacious/image)
    
    if [[ "$album_art" == "" ]]; then
    
        cp $HOME/.config/conky/Audacious/not_available.png $HOME/.config/conky/Audacious/album_art.png
      
     else
        
        wget -O "$HOME/.config/conky/Audacious/album_art.png" --user-agent=”Mozilla” "$album_art"
        
        convert $HOME/.config/conky/Audacious/album_art.png $HOME/.config/conky/Audacious/album_art.png         
        
        > $HOME/.config/conky/Audacious/image       
    
    fi  
  
  fi
  
#### Disable conky when turn off Audacious
  
  test3=$(ps -A | grep audacious)
  
  if [[ "$test3" == "" ]]; then
  
     audacious_conky=$(pgrep -a conky | awk '/Audacious-stream-swiss-pop-conky/{print $1}')
  
     kill -SIGKILL $audacious_conky     
     
  fi

6) Create Audacious-stream-swiss-pop-conky (or whatever) and replace the line in the audacious-stream-swiss-pop script:

     audacious_conky=$(pgrep -a conky | awk '/Audacious-stream-swiss-pop-conky/{print $1}')

7) Audacious-stream-swiss-pop-conky (or whatever) should run the audacious-stream-swiss-pop script every 10 seconds.

${texeci 10 bash $HOME/.config/conky/Audacious/audacious-stream-swiss-pop}\
${image $HOME/.config/conky/Audacious/album_art.png -p 0,0 -s 128x128}

Done.

You now have the same album cover as on the Radio Swiss Pop website.

Enjoy!  music2.gif

P.S.
This is not enough:
https://postimg.cc/5XbkMS9T   big_smile


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2409 2025-09-13 10:03:11

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

20250913-11h45m04s-grim.png
album_cover_orig

Plüsch
Häbs guet

album_cover

Plusch
Habs guet

Perfecct.  smile

Wow!
You're a master of scripting!  good2.gif
I've set everything up. However, wget is filling up my $HOME with its logs:

Output is redirected to “wget-log”.

Output is redirected to “wget-log.1”.

Output is redirected to “wget-log.2”.  etc

I assume you can't stick with curl in this case?

Anyway, I did

wget -q -O .....

(is that even still ‘modern’?). But that also means peace and quiet in the terminal.
The album_art.png display is working flawlessly so far.  smile

Offline

#2410 2025-09-13 12:46:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 845

Re: Show us your conky

^ Interesting.

I tested the new script yesterday for half an hour (or more) and I don't have any wget logs with a capital (uppercase) "-O".

if I remember correctly:

-o /dev/null

It will redirect logging to /dev/null.

Also:

$ man wget
...
Logging and Input File Options
       -o logfile
       --output-file=logfile
           Log all messages to logfile.  The messages are normally reported to
           standard error.
...               
       -q
       --quiet
           Turn off Wget's output.

...

unklar wrote:

The album_art.png display is working flawlessly so far.

I can confirm.
It will stay that way until the Radio Swiss Pop developers change something (same as AccuWeather).
Such scripts are special because it is necessary to know HTML and CSS code.

Now, if you want, you can use album_cover_orig to display the Artist/Title in conky.
I'm sure we'll see a new conky soon.  smile

Last edited by marens (2025-09-13 12:52:40)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2411 2025-09-13 14:30:25

loutch
Member
Registered: 2015-12-12
Posts: 859

Re: Show us your conky

Hello

Right conkis start on login

Each conky on the left, as well as audacious and radiotray_NG in the middle, have their own launcher ( start & kill) that allows me to choose what i want to see on the desktop.

SvooPUyE_t.png


@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2412 2025-09-14 07:53:48

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

@loutch,  wink
Je suis très impressionné par ton chef-d'œuvre Conky. C'est vraiment du haut niveau. Excellent travail !

PS : As-tu trouvé une solution pour cela ? Je te pose la question, car je pensais l'avoir trouvée avec l'outil Python « rembg ». Mais celui-ci date de 2021 et ne fonctionnera plus en 2025. J'ai posé la question et j'attends une réponse...
-----------------------
@loutch,  wink
I am very impressed by your Conky masterpiece. It embodies absolute excellence. Great work!

PS: Have you found a solution for this? I'm asking because I thought I had found one with the Python tool ‘rembg’. However, it's from 2021 and won't work out of the box in 2025. I've asked about it and am hoping for a reply...

Last edited by unklar (2025-09-14 07:55:29)

Offline

#2413 2025-09-14 08:05:39

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

@marens,
I'm still testing. The album_cover.png display is still perfect. However, yesterday evening I was very disappointed with the quality of the images. This was confirmed by using the ‘old’ script, which often did not display the same image, but did so in razor-sharp quality.

I need to keep observing whether it's due to the website or possibly also because I'm displaying the cover at 300x300.

Offline

#2414 2025-09-14 08:33:58

loutch
Member
Registered: 2015-12-12
Posts: 859

Re: Show us your conky

Hello

@ unklar

Danke.

Ich habe es noch nicht gefunden , außerdem gibt es, wenn die Börse geschlossen ist, eine Verschiebung um eine bestimmte Anzahl von Zeilen in der Datei info_cac.txt ,
und bei 1400 Zeilen habe ich noch nicht gefunden, wo diese Verschiebung beginnt.

Ich setze meine Suche fort.
---------------------------------------------

Not found yet, and when the stock market is closed, there is a shift of a certain number of lines in info_cac.txt
and out of 1,400 lines, I still haven't found where this shift begins.
I'm continuing my search.


@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2415 2025-09-14 13:34:59

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

unklar wrote:

@marens,
I'm still testing. The album_cover.png display is still perfect. However, yesterday evening I was very disappointed with the quality of the images. This was confirmed by using the ‘old’ script, which often did not display the same image, but did so in razor-sharp quality.

I need to keep observing whether it's due to the website or possibly also because I'm displaying the cover at 300x300.

It's the album cover images on the website that sometimes look “lousy.” Two examples:

conk12.png   conk13.png

Offline

#2416 2025-09-14 14:42:50

loutch
Member
Registered: 2015-12-12
Posts: 859

Re: Show us your conky

Hello

First thing done, found my discrepancy in info_cac.txt and modifications are working for now, we'll see tomorrow when the stock market opens.

conky.config = {
use_xft = true,
	font = 'SF Pro Rounded Regular:size=8',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_class = 'Conky' ;
	own_window_transparent = false,
        own_window_argb_visual = true,
	own_window_argb_value = 00,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 160, minimum_height = 160,
        maximum_width = 160,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 380,
	gap_y = 397,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',  

color0 = '2777ff',
color1 = 'D2CBC1',
color2 = 'red',
color3 = 'blue',
color4 = '797979',
color5 = '7B7870',
color6 = '3F3C36',
color7 = '000000',
color9 = '3F3C36',

lua_load = '~/.conky/Tahoe/bourse/settings.lua scripts/loadall.lua',
    lua_draw_hook_pre = 'main',
    lua_startup_hook = 'vars',
    
}

conky.text = [[  ${alignc}CAC 40 
     ${texeci 300 sed -n '602p' $HOME/.conky/Tahoe/bourse/info_cac.txt} Pts
     ${texeci 300 sed -n '603p' $HOME/.conky/Tahoe/bourse/info_cac.txt}
${if_match "${texeci 3600 sed -n '613p' $HOME/.conky/Tahoe/bourse/info_cac.txt}" == "Indices"}
${alignc}${voffset -10}A l'ouverture 
${texeci 3600 sed -n '665p' $HOME/.conky/Tahoe/bourse/info_cac.txt} Pts
${alignc}A la clôture hier 
${texeci 3600 sed -n '667p' $HOME/.conky/Tahoe/bourse/info_cac.txt} Pts
${alignc}EUR/USD
      ${texeci 300 sed -n '632p' $HOME/.conky/Tahoe/bourse/info_cac.txt | cut -c 7-12} USD
${else}
${alignc}${voffset -10}A l'ouverture 
${texeci 3600 sed -n '657p' $HOME/.conky/Tahoe/bourse/info_cac.txt} Pts
${alignc}A la clôture hier 
${texeci 3600 sed -n '659p' $HOME/.conky/Tahoe/bourse/info_cac.txt} Pts
${alignc}EUR/USD
      ${texeci 300 sed -n '624p' $HOME/.conky/Tahoe/bourse/info_cac.txt | cut -c 7-12} USD
${endif}

${lua fDrawImage $HOME/.conky/Tahoe/bourse/diag.png 20 41 130 72}
${voffset -200}
${execi 350 ~/.conky/Tahoe/bourse/cac40.sh}
]];

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2417 2025-09-14 18:06:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 845

Re: Show us your conky

unklar wrote:

It's the album cover images on the website that sometimes look “lousy.”

Yes.
In more detail, the site uses an external source and the problem is probably temporary.

Radio Swiss Pop:                           Source:
radio-swis-pop.png        source.png

Note *
My "old" script uses a different source.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2418 2025-09-17 01:32:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 845

Re: Show us your conky

@unklar

What do you think, is it a good idea to add the following album art and reduce the size of images in Conky?
This way you will get images with better sharpness.

Conky can be horizontal or vertical.
This is not Conky, but a  simulation*  of a 180x180 image:


Radio Swiss Pop

Now                                         Next
album-art1.jpg  album-art2.jpg


If you like it, open the script ~/.config/conky/Audacious/audacious-stream-swiss-pop  and find the line:

        > $HOME/.config/conky/Audacious/image

Then add below (it should look like this):

        > $HOME/.config/conky/Audacious/image
        
#### Add Next Album Art
  
        album_art_next=$(cat $HOME/.config/conky/Audacious/radio_raw | grep -o '[ ^]<img src="https://cdne-satr-prd-rsp-covers.azureedge.net[^ ]*' | sed 's/ <img src="//g' | sed 's/"//g' | sed 's/net\/50/net\/350/g' | sed '7q;d')
  
        wget -O "$HOME/.config/conky/Audacious/album_art_next.png" --user-agent=”Mozilla” "$album_art_next"
        
        convert $HOME/.config/conky/Audacious/album_art_next.png $HOME/.config/conky/Audacious/album_art_next.png
  
#### END - Add Next Album Art

You should now have the image album_art_next.png  in the folder ~/.config/conky/Audacious.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2419 2025-09-17 15:46:47

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

Thank you for your efforts and your arrangement.  smile

Everything has its pros and cons. In this case, 180x180 would be too small for my old eyes.

This is now the Conky I will stick with.
As you can see, I have both scripts in there and can quickly switch between ${image...} and ${lua conky_fDrawImage...}.

conky.config = {

	background = false,
	update_interval = 1.0,
	-- update_run_times = '0',
	total_run_times = 0,

	cpu_avg_samples = 2,
	net_avg_samples = 2,

	double_buffer = true,
	no_buffers = true,

	text_buffer_size = 1024,
	imlib_cache_size = 512,

	own_window = true,
	own_window_class = 'Conky',
	own_window_type = 'override',--All options: conky,dock,desktop,normal,override,panel
	own_window_transparent = true,
	-- own_window_argb_visual = true,
	-- own_window_argb_value = 255,--Opacity color
	own_window_colour = '#2E2C2C',--Change color bg in this line
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--sticky,
--	out_to_wayland = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
--	out_to_x = false,

	draw_shades = false,
	draw_borders = false,
	draw_graph_borders = false,

--	minimum_width = 290, minimum_height = 290,
	minimum_width = 300, minimum_height = 300,
--	maximum_width = 285,

	alignment = 'bottom_right',
	gap_x = 8,
	gap_y = 8,

	use_xft = true,
	override_utf8_locale = true,
	font = 'Inconsolata:size=10',
	xftalpha = 1,
	uppercase = false,
	use_spacer = 'none',

	default_color = '#868686',--D8D8D8
	default_shade_color = '#000000',
	default_outline_color = '#939393',
	color0 = '#FFFFFF',
	color1 = '#010101',
	color2 = '#F3F3FF',-- - red
	color3 = '#FFFF00',-- - yellow
	color4 = '#0000FF',-- - blue
	color5 = '#00FF00',-- - green
	color6 = '#FFA500',-- - orange
	color7 = '#F3F3FF',-- - cyan
	color8 = '#FFD700',-- - gold
	color9 = '#F00F16',-- - reddish

lua_load = os.getenv("HOME") .. '/.config/conky/lua/image.lua',

};

conky.text = [[
${texeci 10 bash $HOME/.config/conky/Audacious/audacious-stream}
#${texeci 10 bash $HOME/.config/conky/Audacious/audacious-stream-swiss-pop}
#${texeci 10 bash $HOME/.config/conky/Audacious/marens2.sh}
${image $HOME/.config/conky/Audacious/album_art.png -p 0,0 -s 300x300}
#${lua conky_fDrawImage /home/unklar/.config/conky/Audacious/album_art.png 0 0 300 300 0}
]];

Since all of this happens on ‘forky/sid’(wayfire),  is here

LANG=C apt policy conky-all
conky-all:
  Installed: 1.22.2-1
  Candidate: 1.22.2-1
  Version table:
 *** 1.22.2-1 500
        500 https://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

active.

This latest version of Conky has this remarkable statement in its changelog:  big_smile

conky (1.22.2-1) unstable; urgency=medium

  * New upstream release.
  * Ensure vim syntax files are installed into the correct location.

 -- Vincent Cheng <vcheng@debian.org>  Wed, 13 Aug 2025 21:30:36 -0700

Since I initially worked with copies of the conky configuration files from [ Carbon ], I had no chance of seeing anything displayed at all. tongue

After that was ‘fixed’:

...
...
 Default values:
  * Netdevice: eno1
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 256
  * Maximum text size: 16384
  * Size text buffer: 256

did these errors come pouring down: https://forums.bunsenlabs.org/viewtopic … 270#p54270
and,

conky: llua_do_call: function your_lua_function execution failed: attempt to call a nil value

In fact, I then used the converted version from @PackRat from the link above as a framework.
Finally, ‘wayland’ was disabled in Conky and the image was finally displayed.  big_smile

Offline

#2420 2025-09-18 09:52:48

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,664

Re: Show us your conky

To clarify one again:  big_smile

Starting with conky -v 1.22.2, not only is a correctly created configuration of the syntax (with ‘vim’) expected, but the storage location of the configuration is also absolute.

$HOME/.config/conky/path/myConky

Personally, I have never worked with Vim. Nor will I. However, I have experienced under Wayland that the conversion of the old syntax from 1.9 with the convert.lua tool is not accepted. I cannot say what was so ‘special’ about this code.

The following image illustrates the ‘problems’ with Wayland:  eMNQUApt.png

The Conky at the top only appears with

out_to_wayland = true,

and the Conky at the bottom only with

--out_to_wayland = true,

In addition, there is a bug in Conky with the “absolute” path:

lua_load = ‘~/.config/conky/your_script.lua’,

or

lua_load = ‘$HOME/.config/conky/your_script.lua’,

It had to be:

lua_load = os.getenv(“HOME”) .. ‘/.conky/lua/image.lua’,

Source

Last edited by unklar (2025-09-18 09:53:48)

Offline

Board footer

Powered by FluxBB