Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.68k stars 709 forks source link

Make the images module behave like custom module #2734

Open xrtxn opened 11 months ago

xrtxn commented 11 months ago

I made a custom script that prints the album art paths as soon as they change. The program runs continously in the background. Unfortunately with this approach waybar refuses to start. It works fine if I run the program like a custom module.

(Example project: https://github.com/xrtxn/waybar_music_art) Config:

"image#album_art":{
        "exec":"$HOME/.config/waybar/modules/rs_album_art",
    "size": 32,
    },
RobertMueller2 commented 10 months ago

Full disclaimer: I've not tried it. ;)

~Quick glance at source and manpage (d2767fb84ac2efed1c29313dec7ede1b756a6f81) -- I think it should work, but you do need to define an interval.~

~From manpage "If no interval is defined, the image will only be rendered once."~

OK, I think I understand the issue now. The image module does not have a continuous worker like the custom module does.

xrtxn commented 10 months ago

OK, I think I understand the issue now. The image module does not have a continuous worker like the custom module does.

Yes that is right I think.