Skip to content

Set Plasma 5 wallpaper from command line

License

Notifications You must be signed in to change notification settings

wapsi/ksetwallpaper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
  • Set one wallpaper on all monitors

python3 ksetwallpaper.py --file filename

  • Start random slideshow from images folder with updating time of 30 minutes

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:

Name ID
Image (default) org.kde.image
Inactive Blur com.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

About

Set Plasma 5 wallpaper from command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%