MatthiasCoppens / mpvpaper

A video wallpaper program for wlroots based wayland compositors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview

MPVPaper

MPVPaper is a wallpaper program for wlroots based wayland compositors, such as sway. That allows you to play videos with mpv as your wallpaper.

Dependencies

  • mpv
  • wlroots

Building

Building Requirements:

  • ninja
  • meson
  • pkg-config

Instructions:

Clone:

git clone --single-branch https://github.com/GhostNaN/mpvpaper

Build:

cd mpvpaper
meson build --prefix=/usr
ninja -C build

Install:

ninja -C build install

Installers

Arch Based:

AUR package: https://aur.archlinux.org/packages/mpvpaper-git/

Usage

Running

Simple example:

mpvpaper DP-2 /path/to/video

You can also forward mpv options by passing "--mpv-options" or "-o" like so:

mpvpaper -o "no-audio --loop-playlist shuffle" HDMI-A-1 www.url/to/playlist

Controlling

If you would like to control MPVPaper while it's running, use a mpv input-ipc-server like this:

mpvpaper -o "input-ipc-server=/tmp/mpv-socket" DP-1 /path/to/video

Then input commands with socat. For example, toggle pause:

echo 'cycle pause' | socat - /tmp/mpv-socket

For more commands read: https://mpv.io/manual/master/#command-interface

Notes

If you are on sway, you can get your display outputs with:

swaymsg -t get_outputs

And make sure you don't let swaybg stand in your way:

killall swaybg

Acknowledgments

License

This project is licensed under the GPLv3 License - see the LICENSE file for details

About

A video wallpaper program for wlroots based wayland compositors.

License:GNU General Public License v3.0


Languages

Language:C 99.6%Language:Meson 0.4%