This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ~/.var/app/io.mpv.Mpv/config/mpv/scripts/inhibit-screensaver.lua | |
-- | |
-- Workaround for inhibiting screensaver for io.mpv.Mpv flatpak (if not paused) | |
-- Issue: [vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback. | |
-- Until this is merged: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/111 | |
-- Non-flatpak version: https://gist.github.com/crazygolem/a7d3a2d3c0cee5d072c0cbbbdee69286 | |
-- | |
-- NOTE: if mpv does not exit cleanly (e.g. with SIGKILL), an orphan process will keep inhibiting the screensaver | |
-- | |
-- Arch: x86_64 |