-
I would really like to have a different wallpaper per group in QTile. I had that set in PaperWM when I still used Gnome, and it makes it very easy to remember which workspace you're in, and allows me to see a ton of different wallpapers throughout the day if I so like. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Was that a PaperWM feature or a Gnome feature? |
Beta Was this translation helpful? Give feedback.
-
I think your best bet is to use the from libqtile import qtile, hook
groups = [...] # Let's say you have 10 groups
wallpapers = [...] # Then list 10 wallpapers
@hook.subscribe.setgroup
def set_wallpaper():
wallpaper = wallpapers[qtile.groups.index(qtile.current_group)]
qtile.paint_screen(qtile.current_screen, wallpaper, mode="fill") Untested, but I think that would work with a bit of additional configuration. |
Beta Was this translation helpful? Give feedback.
-
This might be a bug - I remember recently there was a discussion about problematic wallpaper handling when using multiple monitors. How are your monitors set up - left and right, or top and bottom? Possibly related: #2839
Hmm not ideal. The main thing that comes to mind is that the code that paints the wallpaper does no caching at all because usually it's a single call at startup. This means that each time your wallpaper is being painted the image data is being loaded again from file, and that's a likely culprit in the delay. It might not be too hard to implement this in your config though, so maybe give that a go. To do this, I'd suggest:
This also might get a slight speedup by not doing Anyway I hope this helps, let me know if you want any help! |
Beta Was this translation helpful? Give feedback.
This might be a bug - I remember recently there was a discussion about problematic wallpaper handling when using multiple monitors. How are your monitors set up - left and right, or top and bottom? Possibly related: #2839
Hmm not ideal. The main thing that comes to mind is that the code that paints the wallpaper does no caching at all because usually it's a single call at startup. This means that each time your wallpaper is being painted the image data is being loaded again fro…