MCPcopy Index your code
hub / github.com/GhostNaN/mpvpaper

github.com/GhostNaN/mpvpaper @1.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.8 ↗ · + Follow
153 symbols 318 edges 8 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Building

Building Requirements:

  • ninja
  • meson
  • libmpv

Clone | Build | Install:

# Clone
git clone --single-branch https://github.com/GhostNaN/mpvpaper
# Build
cd mpvpaper
meson setup build --prefix=/usr/local
ninja -C build
# Install
ninja -C build install

Usage

Simple example:

mpvpaper DP-2 /path/to/video

To play the same video on all outputs:

mpvpaper ALL /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

You can also control mpvpaper just like mpv in the terminal with keyboard bindings.

But if you would like to control mpvpaper while it's forked, you could 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 mpv commands read: https://mpv.io/manual/master/#command-interface

For more info on mpvpaper, please refer the the man page.

Acknowledgments

  • glpaper and swaybg for the initial boilerplate code, check em out here:
  • https://hg.sr.ht/~scoopta/glpaper
  • https://github.com/swaywm/swaybg

License

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

Core symbols most depended-on inside this repo

cflp_error
called by 29
src/cflogprinter.c
cflp_info
called by 17
src/cflogprinter.c
exit_mpvpaper
called by 14
src/main.c
eglGetErrorString
called by 9
inc/glad/glad_egl.h
cflp_warning
called by 7
src/cflogprinter.c
destroy_display_output
called by 5
src/main.c
destroy_display_output
called by 4
src/holder.c
pthread_sleep
called by 4
src/main.c

Shape

Function 95
Class 58

Languages

C93%
C++7%

Modules by API surface

src/main.c63 symbols
src/holder.c45 symbols
src/glad.c30 symbols
inc/glad/glad_egl.h6 symbols
src/cflogprinter.c5 symbols
inc/glad/glad.h4 symbols

For agents

$ claude mcp add mpvpaper \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact