GhostNaN / mpvpaper

A video wallpaper program for wlroots based wayland compositors.
GNU General Public License v3.0
713 stars 21 forks source link

Feature Request: Use with SwayLock #37

Closed tellmeY18 closed 1 year ago

tellmeY18 commented 1 year ago

Swaylock looks boring with static wallpaper. Any way to extend the mpvpaper support to SwayLock?

mstoeckl commented 1 year ago

There's a fork of Swaylock that I made which lets you use mpvpaper as a plugin.

https://github.com/mstoeckl/swaylock-plugin

Use like: swaylock --command "mpvpaper -o 'loop' '*' /path/to/video.mkv" . It's a bit rough at the moment; for example, the lockscreen will crash if the video ends, so the video should be looped as in the example. If you are using Sway >= 1.8, which fails closed on lockscreen crash, you should set up a bindsym --locked to restart the lockscreen in case there are any issues.