This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Plasma Desktop Scripting for Look & Feel

Tags: None
(comma "," separated)
somniumaeternam
Registered Member
Posts
1
Karma
0
I followed the documentation of the Plasma Desktop Scripting in "https://userbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting" and was able to change the wallpaper of the desktop with:

Code: Select all
var allDesktops = desktops();
print (allDesktops);
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://<filename>")
}


This script can then be send to the associated dbus-interface e. g. with python:

Code: Select all
plasma = dbus.Interface(
    bus.get_object('org.kde.plasmashell', '/PlasmaShell'),
    dbus_interface='org.kde.PlasmaShell'
)
plasma.evaluateScript(<script>)


My question is, if and how it is possible to change the wallpaper of the Lockscreen/Screensaver and the Look&Feel Package (or separatly icon theme, color etc.) accordingly?

I couldn't find these information in the documentation.

Thank you and Greetings
j8a
Registered Member
Posts
156
Karma
0
OS
Hi, somniumaeternam
I wish whether you are not doing this from system preferences and what plasmashell version are you running. You can type plasmashell -v in a terminal to see this.
KDE plasma 5.13 is able to do the changes very well, I have encountered no problem since plasmashell 5.12

Hope it help you


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]