So for a while i’ve had a folder with drone videos that i wanted to use as screensavers. So after a little digging in some xscreensaver and mpv settings i came up with this :
mpv \ --shuffle \ --really-quiet \ --no-audio \ --fs \ --no-stop-screensaver \ --wid=$XSCREENSAVER_WINDOW \ $HOME/ss_videos/*
as you can see the path to my videos is
$HOME/ss_videos/* and the options in mpv are pretty self explanatory.
As you can see in that image the formatting is :
Best: "Drone Videos" mpv --shuffle --really-quiet --no-audio \ --fs --no-stop-screensaver \ --wid=$XSCREENSAVER_WINDOW \ $HOME/ss_videos/* \n\
The “Best” denotes the video driver to use.
The “Drone Videos” tag is what will show up in xscreensaver-demo when enabling.
This snippet is added in the “programs:” block in the .xscreensaver file.
Now restart your xscreensaver daemon (might be easier to restart X) and open up xscreensaver-demo.
Now just select and hit preview.