Skip to content

Instantly share code, notes, and snippets.

@krishraghuram
Last active April 24, 2021 16:27
Show Gist options
  • Save krishraghuram/34df4f5f94ae6731a475f76bf479197c to your computer and use it in GitHub Desktop.
Save krishraghuram/34df4f5f94ae6731a475f76bf479197c to your computer and use it in GitHub Desktop.
Command to change wallpaper in KDE Plasma
# This is the command to change the desktop background on KDE plasma
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:///home/raghuram/Pictures/shrug.png")
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment