Kharacternyk / pacwall

A live wallpaper that shows the dependency graph and status of installed packages.
GNU General Public License v3.0
556 stars 33 forks source link

Add sway integration #37

Closed BertalanD closed 4 years ago

BertalanD commented 4 years ago

There is no official way to keep the wallpaper change persistent after reboot with swaybg.

How should we handle multiple displays/resolutions?

Kharacternyk commented 4 years ago

There is no official way to keep the wallpaper change persistent after reboot with swaybg.

AFAIK on "raw" Xorg without a DE it isn't possible either. I just run feh on startup in a WM config file.

How should we handle multiple displays/resolutions?

No idea. I haven't ever had a multiple display setup (non-mirroring). Since I can't test it myself, I just hope that one day someone with such a setup will contribute code that makes it work.

BertalanD commented 4 years ago

AFAIK on "raw" Xorg without a DE it isn't possible either.

feh keeps the wallpaper persistent with ~/.fehbg, but --no-fehbg disables it.

Kharacternyk commented 4 years ago

feh keeps the wallpaper persistent with ~/.fehbg, but --no-fehbg disables it.

Then I misunderstood what you meant by "keep persistent". ~/.fehbg is a shell script that must be sourced/run in order to set the wallpaper.

Maybe pacwall should have something like .fehbg, too? Haven't thought of that before.

BertalanD commented 4 years ago

Maybe pacwall should have something like .fehbg, too? Haven't thought of that before.

I was toying with this idea, but I think it's over-the-top. i3/sway/etc. users should know how to change their wallpaper manually. And sourcing a script is no easier than changing the wallpaper's path.

On that thought, the whole hsetroot/feh/swaymsg integration seems kinda pointless. If one wants to set their wallpaper persistently, they would have to either put it in their config files (then they don't need pacwall to set it for them), write a script that loads the previously generated image on startup (a lot of effort) or run pacwall at startup (terrible loading times). The only use I can find is if they have set up a pacman hook, but even then, they could just add the command that refreshes the wallpaper to the hook.

However, I find it nice that I instantly get to see the gorgeous background, so I'd still rather have it stay. What do you think about printing out instructions on how to keep the change after reboot?

Kharacternyk commented 4 years ago

write a script that loads the previously generated image on startup

run pacwall at startup

I do both: set the previously generated image and let pacwall update it in the background.

What do you think about printing out instructions on how to keep the change after reboot?

That's a good idea. Even better would be letting pacwall execute the instructions itself:)

BertalanD commented 4 years ago

Even better would be letting pacwall execute the instructions itself:)

sed the user's i3/sway/etc. config? /s