Last active
April 24, 2021 16:27
-
-
Save krishraghuram/34df4f5f94ae6731a475f76bf479197c to your computer and use it in GitHub Desktop.
Command to change wallpaper in KDE Plasma
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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