⚡ Animated Wallpapers on Linux
Took me some time to find a solution but I found a way to make videos/GIFs as backgrounds in linux using Devilspie and common video/gif players:
Install these using your distros package manager
- Gifsicle (For GIFs) or MPV player (For videos)
- Put all the
*.dsfiles above into
anibgto any directory and set it as executable.
- Restart Devilspie to load the new
- To load a video or gif file as background run:
- Set your DE to run step 3 automatically when it starts.
Note for video background: The
anibg script by default doesn't use hardware acceleration so it may end up eating a lot of CPU around 50% as reported by htop, you can instead use the command below it which enables hardware acceleration, but the arguments may vary depending on your hardware, check here and see which one is applicable to yours https://mpv.io/manual/master/#video if it doesn't work. CPU usage with HW acceleration falls down to around 4%. GIFs on the other hand take up at most 0.5%.
This method works by setting the window type of mpv player or gifview to desktop and disabling any mouse/keyboard input into the program. Only caveat is that the wallpaper covers all desktop icons but all panels and docks should be above the wallpaper.
Originaly posted on Reddit by waicool20