eylles / pywal16

16 colors fork of pywal
MIT License
217 stars 25 forks source link

Bad interaction with BSPWM. #9

Open lordaris opened 2 years ago

lordaris commented 2 years ago

Using wal -i <path to images directory> restarts BSPWM and doesn't change the background

eylles commented 2 years ago

welp, not so much of a bad interaction iirc it restarts bspwm to apply the generated colors (for window borders if i'm not mistaken) you can always pass wal the -e flag to skip reloading bspwm/polybar/gtk2/xrdb.

On the background, how do you set your wallpaper tho? if you still use arcolinux do you set it with nitrogen, variety or feh?

guillaumeboehm commented 2 years ago

Works just fine for me, sets the background and reloads bspwm. @eylles is probably on the right track.

lordaris commented 2 years ago

Hello, eylles! Thank you for the prompt reply!

I'm still using Arcoliunux, with variety to set the wallpaper, and a key binding to executewal -i <path to images>. It used to work well, but after some time, as I said, it started restarting BSPWM and not changing the background. I replaced your pywal with the regular one and it works well. Anyways, I'll try yours again and see what happens.

eylles commented 2 years ago

with regular pywal you mean the one from pip right?

yeh that version doesn't got this function https://github.com/eylles/pywal16/blob/7b0970890def361da62496f243e47f8a4797c3fe/pywal/reload.py#L51-L54

meanwhile pywal16 got a couple extra functions to set wallpapers, we can always roll out a new one to explicitly deal with variety. for reference the function in pywal16 is this https://github.com/eylles/pywal16/blob/7b0970890def361da62496f243e47f8a4797c3fe/pywal/wallpaper.py#L60-L88

eylles commented 2 years ago

ah wait, in your system is variety using feh as the actual bg setter?

eylles commented 2 years ago

hmmm i'm not sure but this could be a wrong interaction with either feh or nitrogen.