Skip to content
forked from GhostNaN/mpvpaper

A video wallpaper program for wlroots based wayland compositors.

License

Notifications You must be signed in to change notification settings

y-fujii/mpvpaper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

Gentoo:

GURU package: https://gpo.zugaina.org/Overlays/guru/gui-apps/mpvpaper/

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 MPVPaper is running in a terminal and is not forked:

Simply enter your keyboard key bindings directly into the terminal.

Else if you would like to control MPVPaper while it's forked, 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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.6%
  • Meson 0.4%