finally changing the wallpaper, mostly in testing however

This commit is contained in:
logzinga 2022-10-31 13:37:39 +11:00
parent aa3c137234
commit eda86d780d
1 changed files with 11 additions and 0 deletions

11
files/wallpaper.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
dbus-send --session --dest=org.kde.plasmashell --type=method_call /PlasmaShell org.kde.PlasmaShell.evaluateScript string:
var Desktops = desktops();
for (i=0;i<Desktops.length;i++) {
d = Desktops[i];
d.wallpaperPlugin = "org.kde.image";
d.currentConfigGroup = Array("Wallpaper",
"org.kde.image",
"General");
d.writeConfig("Image", "file:///PATH/TO/IMAGE.png");