mpv --playlist=<(lb wt vids.db -l120 -pf)
you can add `w` to `-p` (ie. `-p fw`) and that will mark the videos as watched when you pipe it so next time it won't play those videos again until you've watched everything at least onceI have one remaining issue though, and it appears to be with mpv, but maybe you have dealt with it before. No matter how much focus stealing protection I place on the mpv window in kwin, nor using the `--focus-on=never` argument with mpv, stops mpv from stealing focus when it launches. Any ideas? Otherwise I might try your idea about piping a playlist to mpv.
hmm maybe not: https://github.com/mpv-player/mpv/issues/9064
edit: I just verified it is working fine on X11 (wanted to make sure I wasn't mis-remembering--but it is very obvious when something steals focus because I use the Dim Inactive desktop effect with a very high setting). I'm using ontop=yes as mentioned before. On Fedora 39 with my setup mpv does not steal focus when launching/switching videos. I did notice some weird behavior with nomachine before but after setting Focus Protection to Force High for nxplayer.bin I haven't noticed it again.
KWin version: 5.27.11
If this isn't working in Wayland surely this should be considered a Wayland/mpv bug?--just one more reason for me to delay trying WaylandI'll see what I can do to debug the issue, but otherwise, thanks for your help, I might try your playlist idea in the meantime, it's arguably closer to my desired behaviour anyway.