Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Guldoman/mpv_inhibit_gnome
This mpv plugin prevents screen blanking in GNOME
https://github.com/Guldoman/mpv_inhibit_gnome
mpv mpv-scripts
Last synced: 3 months ago
JSON representation
This mpv plugin prevents screen blanking in GNOME
- Host: GitHub
- URL: https://github.com/Guldoman/mpv_inhibit_gnome
- Owner: Guldoman
- License: mit
- Created: 2021-08-22T01:12:40.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T19:52:17.000Z (almost 2 years ago)
- Last Synced: 2024-06-30T14:47:31.938Z (5 months ago)
- Topics: mpv, mpv-scripts
- Language: C
- Homepage:
- Size: 48.8 KB
- Stars: 33
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpv - inhibit_gnome - Prevent screen blanking on GNOME while content is playing (Other)
README
# `mpv_inhibit_gnome`
[![AUR version](https://img.shields.io/aur/version/mpv_inhibit_gnome)](https://aur.archlinux.org/packages/mpv_inhibit_gnome)
[![COPR version](https://img.shields.io/badge/dynamic/json?color=blue&label=copr&query=builds.latest_succeeded.source_package.version&url=https%3A%2F%2Fcopr.fedorainfracloud.org%2Fapi_3%2Fpackage%3Fownername%3Dsolopasha%26projectname%3Dmpv_inhibit_gnome%26packagename%3Dmpv_inhibit_gnome%26with_latest_succeeded_build%3DTrue)](https://copr.fedorainfracloud.org/coprs/solopasha/mpv_inhibit_gnome/)This mpv plugin prevents screen blanking in GNOME while playing media.
This is needed because neither mpv supports GNOME's inhibition protocol, nor
GNOME supports the standard inhibition protocol
([yet](https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/111)).## Installing
You can find the latest release [here](https://github.com/Guldoman/mpv_inhibit_gnome/releases).
Download `mpv_inhibit_gnome.so` and put it in your `mpv` scripts directory
(by default it's `~/.config/mpv/scripts`).## Manually building and installing
To build, the `libdbus-1` library is needed
(Arch: `dbus`, Fedora: `dbus-devel`, Ubuntu: `libdbus-1-dev`),
as well as the header files for `mpv`
(Arch: `mpv`, Fedora: `mpv-libs-devel`, Ubuntu: `libmpv-dev`).To build run:
```bash
make
```
This will generate the plugin in `lib/mpv_inhibit_gnome.so`.To install in the default per-user location `~/.config/mpv/scripts`
either copy it there or run:
```bash
make install
```To install in the default system-wide location `/usr/share/mpv/scripts` run:
```bash
sudo make sys-install
```## Flatpak support
This plugin has been integrated into the
[Flatpak release of mpv](https://flathub.org/apps/details/io.mpv.Mpv),
so you should already be good to go.If this plugin was manually installed before the integration,
uninstall it to avoid conflicts by deleting
`~/.var/app/io.mpv.Mpv/config/mpv/scripts/mpv_inhibit_gnome.so`.