Skip to content

Instantly share code, notes, and snippets.

@redhat421
redhat421 / mpv-freedesktop-screensaver-plugin.c
Last active January 30, 2024 08:23 — forked from fernandoherreradelasheras/mpv-freedesktop-screensaver-plugin.c
mpv pluging to inhibit screensaver while playing a video using freedesktop dbus api
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <gio/gio.h>
#include <mpv/client.h>
/**
* mpv pluging to inhibit screensaver while playing a video on GNOME Desktop