mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-02 04:08:30 -05:00
26 lines
543 B
Bash
26 lines
543 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# You need mpv-devel, meson, ninja, pkg-config
|
||
|
|
||
|
git clone https://github.com/GhostNaN/mpvpaper
|
||
|
|
||
|
cd mpvpaper || exit
|
||
|
meson build --prefix=/usr
|
||
|
ninja -C build
|
||
|
|
||
|
if command -v doas >/dev/null
|
||
|
then
|
||
|
doas -- ninja -C build install
|
||
|
else
|
||
|
sudo ninja -C build install
|
||
|
fi
|
||
|
|
||
|
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
|