wkgen works
This commit is contained in:
parent
2693967c34
commit
83c46ea4ee
|
@ -15,9 +15,14 @@ if [[ "$oldhash" = "$newhash" ]]; then
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
echo "[$(eval $date)]: setting wallpaper..." | tee -a $logfile
|
echo "[$(eval $date)]: setting wallpaper..." | tee -a $logfile
|
||||||
kwriteconfig5 --file \
|
dbus-send --session --dest=org.kde.plasmashell --type=method_call \
|
||||||
"$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" --group \
|
/PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:
|
||||||
'Containments' --group '1' --group 'Wallpaper' --group 'org.kde.image' \
|
var Desktops = desktops();
|
||||||
--group 'General' --key 'Image' "$filelocation"
|
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
|
echo "[$(eval $date)]: done" | tee -a $logfile
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue