Skip to content

Instantly share code, notes, and snippets.

@mamantoha
Last active February 26, 2023 21:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mamantoha/c01363e5c791e8324d6248b09cf29bbb to your computer and use it in GitHub Desktop.
Save mamantoha/c01363e5c791e8324d6248b09cf29bbb to your computer and use it in GitHub Desktop.
Set desktop wallpaper in Plasma5 via a dbus command
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops(); for (i = 0; i < allDesktops.length; i++) {d = allDesktops[i]; d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General"); d.writeConfig("Image", "file:///path/to/image.png")}'
@mamantoha
Copy link
Author

This still works with Plasma 5.27.0 🤩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment