wkgen works

This commit is contained in:
Christoph J. Scherr 2024-05-24 08:55:27 +02:00
parent 2693967c34
commit 83c46ea4ee
1 changed files with 9 additions and 4 deletions

View File

@ -15,9 +15,14 @@ if [[ "$oldhash" = "$newhash" ]]; then
exit
else
echo "[$(eval $date)]: setting wallpaper..." | tee -a $logfile
kwriteconfig5 --file \
"$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" --group \
'Containments' --group '1' --group 'Wallpaper' --group 'org.kde.image' \
--group 'General' --key 'Image' "$filelocation"
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://'$filelocation'");
}'
echo "[$(eval $date)]: done" | tee -a $logfile
fi