danyspin97 / wpaperd

Modern wallpaper daemon for Wayland
GNU General Public License v3.0
332 stars 26 forks source link

feature: create a hook mechanism to execute commands every time a wallpaper is changed #100

Closed ivandimitrov8080 closed 6 days ago

ivandimitrov8080 commented 1 week ago

I'd like to symlink the current background image to some file so that I can use swaylock to use that image as the swaylock screen.

I don't see anywhere a way to do this without monitoring for changes.

Please add hook support.

I don't see a symlink in .local/state/wpaperd for 1 display.

danyspin97 commented 6 days ago

Hi @ivandimitrov8080!

In the main branch I have added the symlink to the current displayed wallpaper for each display in ~/.local/state/wpaperd/wallpapers. Does this help or do you still need a hooking mechanism?

ivandimitrov8080 commented 6 days ago

@danyspin97 I can make it work like this. Thanks!