danyspin97 / wpaperd

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

(Feature Request) Add option to save copy of current wallpaper #93

Open guttermonk opened 5 days ago

guttermonk commented 5 days ago

If there were an option for the daemon to save a copy of the wallpaper to a static file path when it transitions to a new image, the copied wallpaper could be used for the lockscreen.

BTW, I starred this repo since it's the best wallpaper app. Really comes closest out of the box to doing everything I want without any bloat. Keep up the great work!

ryan77627 commented 4 days ago

I too would like this feature, since it seems to be the easiest way to set the current wallpaper to the background for hyprlock/others

danyspin97 commented 3 days ago

Hello @guttermonk and @ryan77627 !

BTW, I starred this repo since it's the best wallpaper app. Really comes closest out of the box to doing everything I want without any bloat. Keep up the great work!

Thank you :)

Regarding the feature, I am thinking between a watch command that waits until the wallpaper changes, leaving up to scripts to copy the wallpaper, or creating a symlink in .local/state/wpaperd/wallpapers:

$ ls .local/state/wpaperd/wallpapers
DP-4
eDP-1

Would that work with hyprlock and swaylock?

guttermonk commented 3 days ago

I haven't tried hyprlock, but either a copy or symlink at that path would work for swaylock.

I've also seen people use .cache for stuff like this. It may be preferable to also log to .cache/wpaperd/ instead of .local/state/wpaperd/ as well since people tend to back-up their .local/ folder and there's no need to back-up logs typically. Just food for thought.

ryan77627 commented 3 days ago

Same here for hyprlock, a copy or (preferably for me honestly) a symlink to the actual file named whatever the display is named would work just fine.

Maybe regarding the path we can just have a configuration value for it, that way people can choose where (and if) they go?