Animated GIF wallpaper for KDE Plasma 5
- Put this in
~/.local/share/plasma/wallpapers/com.nerdyweekly.animated
. - Go to Desktop Settings, choose Wallpaper Type: Animated GIF, apply, profit.
- Optional: Go to Screen Locking and choose the same wallpaper type. Enable blur if you prefer that (I do).
- Optional: replace
contents/ui/animation.gif
with your animated gif of choice. You may need to tweak the image dimensions a bit incontents/ui/main.qml
.
TODO (read: probably never)
- Configurable wallpaper with proper file picker and stuff
- Support resolutions other than 1920x1080.
Rice Rice Baby
If you're into this ricing stuff (which you probably shouldn't), here are the resources I used:
- Video wallpaper tutorial
- QML AnimatedImage documentation
- Plasma's own existing wallpaper types: probably in
/usr/share/plasma/wallpapers/
A bird's eye view:
- metadata.desktop: self-explanatory
- contents/ui/main.qml: how to render the wallpaper
- contents/ui/config.qml: how to render the wallpaper config window
- You can preview your QML files quickly with
qmlscene <file>.qml
. Probably comes with QtCreator. Note: my config.qml usesformAlignment
, which is available in the context that it's used in but will makeqmlscene
complain. That's normal. - May need to logout then login again for the updated
main.qml
to take effect. Or try removing all*.qmlc
files.
Credits
The beaufiful GIF included here was made by 1041uuu. Check them out!