- MPV
- Xwinwrap
- Hardware Aceleration Enabled
Debian/Ubuntu:
# apt install mpv
Arch Linux and Manjaro:
# pacman -S mpv
OpenSUSE:
# zypper install mpv
Fedora:
# dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# dnf install mpv mpv-libs
Void Linux:
# xbps-install -S mpv
Debian/Ubuntu (Build from sources):
sudo apt install xorg-dev build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev
git clone https://github.com/ujjwal96/xwinwrap.git
cd xwinwrap
make
sudo make install
make clean
Arch Linux and Manjaro (Using AUR):
- Using yay:
# yay -S xwinwrap-git
- Using paru:
# paru -S xwinwrap-git
- Using yay:
# yay -S xwinwrap-0.9-bin
- Using paru:
# paru -S xwinwrap-0.9-bin
OpenSUSE:
# zypper install xwinwrap
Fedora:
# dnf install xwinwrap
Void Linux:
# xbps-install -S xwinwrap
Xwinwrap works becouse mpv draw the video on screen using Hardware Aceleration, if you don't have enable on your system, please, read the article on Arch wiki. Hardware video acceleration
Now, create a new config file on ~/.config/mpv/mpv.conf
with the
following configuration
[wallpaper]
fullscreen=yes
title=mpv-wallpaper
geometry=100%x100%
border=no
no-window-dragging
x11-name=mpv-wallpaper
hwdec=vaapi
aid=no
loop-file=yes
idle=no
background="#427b58"
really-quiet=yes
Create a new bash script into a personal script folder, and execute in the start file in your wm
#!/usr/bin/env bash
#set video as wallpaper using xwinwrap and mpv - change path to your video!!
killall -9 xwinwrap
killall -9 mpv
xwinwrap -g 1366x768 -un -fdt -ni -b -ov -nf -- mpv -profile=wallpaper -wid WID -shuffle /path/to/folder/video/
And enjoy!!