BlingCorp / bling

Utilities for the awesome window manager
https://blingcorp.github.io/bling/
MIT License
851 stars 51 forks source link

Any way to get tag_preview's wallpaper background to be the current one set by the wallpaper module? #153

Open kwand opened 2 years ago

kwand commented 2 years ago

As titled.

Currently, I'm using theme.wallpaper for tag preview's background wallpaper - following the example in the docs - but I noticed that bling's wallpaper module doesn't change this variable or any other global variable that I know of (I might be wrong about this though!), so the tag preview's wallpaper doesn't really match the current wallpaper being used.

Any way to do this within the current release, or does this require a PR?

latipun7 commented 2 years ago

I want to know this too ... Here's my use case: https://github.com/BlingCorp/bling/discussions/160 Sorry for opening the discussion (duplicate of this issue), I really miss this issue

Nooo37 commented 2 years ago

Yea you are right. It would be cool if one could get notified when the wallpaper changed. That doesn't seem possible with the current code and would require a PR though.

Theoretically one can access the surface of the wallpaper already through root.wallpaper(). For example awesome-client "cairo = require('lgi').cairo; cairo.Surface(root.wallpaper()):write_to_png('test.png')" will save your wallpaper to "test.png". But afaik there is no signal to attach to, to determine when the wallpaper changed.