Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad interaction with BSPWM. #9

Open
lordaris opened this issue Aug 24, 2022 · 6 comments
Open

Bad interaction with BSPWM. #9

lordaris opened this issue Aug 24, 2022 · 6 comments

Comments

@lordaris
Copy link

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

@eylles
Copy link
Owner

eylles commented Aug 24, 2022

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
Copy link
Contributor

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

@lordaris
Copy link
Author

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
Copy link
Owner

eylles commented Aug 24, 2022

with regular pywal you mean the one from pip right?

yeh that version doesn't got this function

pywal16/pywal/reload.py

Lines 51 to 54 in 7b09708

def bspwm():
"""Reload bspwm colors."""
if shutil.which("bspc") and util.get_pid("bspwm"):
util.disown(["bspc", "wm", "-r"])

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

def set_wm_wallpaper(img):
"""Set the wallpaper for non desktop environments."""
if shutil.which("feh"):
util.disown(["feh", "--bg-fill", img])
elif shutil.which("xwallpaper"):
util.disown(["xwallpaper", "--zoom", img])
elif shutil.which("hsetroot"):
util.disown(["hsetroot", "-fill", img])
elif shutil.which("nitrogen"):
util.disown(["nitrogen", "--set-zoom-fill", img])
elif shutil.which("bgs"):
util.disown(["bgs", "-z", img])
elif shutil.which("hsetroot"):
util.disown(["hsetroot", "-fill", img])
elif shutil.which("habak"):
util.disown(["habak", "-mS", img])
elif shutil.which("display"):
util.disown(["display", "-backdrop", "-window", "root", img])
else:
logging.error("No wallpaper setter found.")
return

@eylles
Copy link
Owner

eylles commented Aug 26, 2022

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

@eylles
Copy link
Owner

eylles commented Oct 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants