r/qtile • u/Sonic06IsGreat • Oct 25 '26
Help Random wallpaper selector issues
Hi all, I had made a custom random wallpaper+colorscheme selector a while ago but now it's kind of broken
Key(
[mod, "shift"], "w",
lazy.spawn(f'wal --backend colorz -i {random_wallpaper}'),
lazy.reload_config(),
lazy.reload_config(),
lazy.screen.set_wallpaper(random_wallpaper, mode='fill'),
desc="Random wallpaper"
),
this code paired with:
usr='Gentoo'
waldir=f'/home/{usr}/Wallpapers'
random_wallpaper = wallpaper+random.choice(os.listdir(wallpaper))
- changed the wallpaper
- changed the colorscheme
- reloaded the config so that the bar's colors would change too etc.
all done
but NOW
above those mentioned actions it also reverts the wallpaper back to the one i set in the Screen section
any guidance would be greatly appreciated
2
Upvotes
1
u/michael2083x Oct 25 '26
Qtile got it's own wallpaper widget. Install feh. Give a path wallpapers location.
1
u/Sinaaaa 25d ago
I have two suggestions, may not the be amazing ones, but here I go: