Skip to content

A Tutorial to show a video on background using a compositor, using minimum requieriments

Notifications You must be signed in to change notification settings

NinjagoART/AnimatedWallpaper-Linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Animated Wallapaper On your desktop

Example of animated Wallapaper

Requeriments:

  1. MPV
  2. Xwinwrap
  3. Hardware Aceleration Enabled

Install

• MPV

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

• Xwinwrap

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):

  1. Using yay:
  # yay -S xwinwrap-git
  1. Using paru:
  # paru -S xwinwrap-git

Or use a xwinwrap 0.9

  1. Using yay:
  # yay -S xwinwrap-0.9-bin
  1. Using paru:
  # paru -S xwinwrap-0.9-bin

OpenSUSE:

  # zypper install xwinwrap

Fedora:

  # dnf install xwinwrap

Void Linux:

  # xbps-install -S xwinwrap

Configuration

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!!

About

A Tutorial to show a video on background using a compositor, using minimum requieriments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published