wkgen works
This commit is contained in:
parent
2693967c34
commit
83c46ea4ee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue