This guide will show you how to have Live Wallpaper on Zorin 16
Installation of concerning apps and libs
- Installation of mpv
sudo apt install mpv
- Compiling tool for Xwinwrap
sudo apt-get install git xorg-dev build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev
- Now downloading and compiling Xwinwrap
git clone https://github.com/ujjwal96/xwinwrap.git
cd xwinwrap
make
sudo make install
make clean
Setup
- To set up a script that makes a Live Wallpaper possible:
cd /usr/local/bin
sudo nano Live.sh
- 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"
- Make the script executable
sudo chmod +x Live.sh
Launch your new Live Wallpaper
- To launch the Live Wallpaper automatically you need a
.desktop
file in~/.config/autostart
:
nano ~/.config/autostart/LiveWallpaper.desktop
- 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
- Log out and log in again and if everything goes according to plan you should see your Live Wallpaper now!
Enjoy!!!