You are not logged in.

#1 2016-08-14 10:27:06

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 104

[SOLVED] KDE - Change wallpaper from command line

Hi,

Is there any way to change KDE wallpaper from the command line? I found a dcup command online but I don't have it in the latest version of KDE on Arch.

Last edited by EgidioCaprino (2016-08-14 12:24:27)

Offline

#2 2016-08-14 11:10:16

Rog131
Member
Registered: 2015-08-23
Posts: 90

Re: [SOLVED] KDE - Change wallpaper from command line

EgidioCaprino wrote:

Hi,

Is there any way to change KDE wallpaper from the command line? I found a dcup command online but I don't have it in the latest version of KDE on Arch.

Yes, after the Bug 217950 was fixed - Ability to set desktop wallpaper via a dbus command: https://bugs.kde.org/show_bug.cgi?id=217950
--> Comment 42: https://bugs.kde.org/show_bug.cgi?id=217950#c42

Add method to run a script from DBus directly

That is - run a java scrip to set the plasma wallpaper - Plasma reviewboard has an example script: https://git.reviewboard.kde.org/r/125648/

Offline

#3 2016-08-14 11:15:22

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 104

Re: [SOLVED] KDE - Change wallpaper from command line

Thank you Rog,

How do you run the JS script? NodeJS?

Alos, I think that overwriting the file with the current wallpaper should work around.

Offline

#4 2016-08-14 11:23:36

Rog131
Member
Registered: 2015-08-23
Posts: 90

Re: [SOLVED] KDE - Change wallpaper from command line

EgidioCaprino wrote:

Thank you Rog,

How do you run the JS script? NodeJS?

You call the script from the qdbus:

qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript <YourScriptHere>

dbus wiki: https://en.wikipedia.org/wiki/D-Bus

Last edited by Rog131 (2016-08-14 11:26:11)

Offline

#5 2016-08-14 12:24:09

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 104

Re: [SOLVED] KDE - Change wallpaper from command line

Thank you Rog!

Offline

Board footer

Powered by FluxBB