2021-05-02 21:09:07 -04:00
|
|
|
#!/bin/sh -e
|
2021-03-04 15:35:42 -05:00
|
|
|
|
|
|
|
# You need mpv-devel, meson, ninja, pkg-config
|
|
|
|
|
|
|
|
git clone https://github.com/GhostNaN/mpvpaper
|
|
|
|
|
2021-05-02 21:09:07 -04:00
|
|
|
cd mpvpaper
|
2021-06-11 13:14:35 -04:00
|
|
|
meson build --prefix=$HOME/.local
|
|
|
|
ninja -C build install
|
2021-03-04 15:35:42 -05:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# Control the wallpaper with mpv input-ipc-server:
|
|
|
|
# mpvpaper -f -o "input-ipc-server=/tmp/mpv-socket" DP-1 /path/to/video
|
|
|
|
# echo 'cycle pause' | socat - /tmp/mpv-socket
|
|
|
|
|
|
|
|
# Simply set the wallpaper
|
|
|
|
# mpvpaper -f -o "--no-audio --loop-file" DP-1 /path/to/video
|