mpv plugin that inhibits lockscreen on linux using freedesktop dbus interface.
It requires lgi, for Arch Linux mpv package built with luajit, it's this AUR package.
Why? Because of kwin bug, inhibition doesn't work out of the box when video output is set to dmabuf-wayland.
Installation: place inhibit.lua in ~/.config/mpv/scripts/