[HowTO] Live Wallpaper on Zorin 16

This guide will show you how to have Live Wallpaper on Zorin 16

Installation of concerning apps and libs

  1. Installation of mpv
sudo apt install mpv
  1. Compiling tool for Xwinwrap
sudo apt-get install git xorg-dev build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev
  1. Now downloading and compiling Xwinwrap
git clone https://github.com/ujjwal96/xwinwrap.git
cd xwinwrap
make
sudo make install
make clean

Setup

  1. To set up a script that makes a Live Wallpaper possible:
cd /usr/local/bin
sudo nano Live.sh
  1. Insert this command, while modifying the path to the video file you want to use:
xwinwrap -fs -fdt -ni -b -nf -- mpv -wid WID --no-audio --loop "/path/to/your/videofile"
  1. Make the script executable
sudo chmod +x Live.sh

Launch your new Live Wallpaper

  1. To launch the Live Wallpaper automatically you need a .desktop file in ~/.config/autostart:
nano ~/.config/autostart/LiveWallpaper.desktop
  1. Copy-paste this and remember to modify its path in Exec;
[Desktop Entry]
Type=Application
Exec=sh -c "path/to/Live.sh"
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Live wallpaper
  1. Log out and log in again and if everything goes according to plan you should see your Live Wallpaper now!

Enjoy!!!

2 Likes