Home

Awesome

KDE set wallpaper script

Usage

-h, --help
                    show this help message and exit
--file, -f FILE
                    Wallpaper absolute path
--plugin PLUGIN, -p PLUGIN
                    Wallpaper plugin (default is org.kde.image)
--dir DIR, -d DIR
                    Absolute path of folder containging your wallpapers for slideshow
--timer TIMER, -t TIMER
                    Time in seconds between wallpapers
--lock-screen, -l   Set lock screen wallpaper

python3 ksetwallpaper.py --file filename

python3 ksetwallpaper.py -d ' /folder/with/Wallpapers' -p org.kde.image -t 1800

Note on lock screen wallpaper

This script cannot (at least for now) change lock screen wallpaper plugin

It reads and updates the Image property of the specified plugin that should be manually enabled in:

System settings > Workspace Behaivor > Screen Locking > Appearance > Configure

A list of wallpapers plugins known to have the Image property are:

NameID
Image (default)org.kde.image
Inactive Blurcom.github.zren.inactiveblur Static mode

Bugs

Plasma does not update the image of the same file name when it is replaced

wallpaper-reddit integration:

This assumes that you've copied ksetwallpaper.py to your $PATH and chmod +x'd it

Apply this patch to wallpaper.py (located in /usr/lib/python3.6/site-packages/wpreddit/)

License

GPL v3