wkgen plasma
This commit is contained in:
parent
381f3957c7
commit
ca61690d81
1 changed files with 17 additions and 0 deletions
17
wanikaliwallpaper-plasma.sh
Executable file
17
wanikaliwallpaper-plasma.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
date='date +%Y-%m-%d\ %T'
|
||||
logfile=~/.wkgen.log
|
||||
set -e
|
||||
echo "[$(eval $date)]: starting webrequests..." | tee -a $logfile
|
||||
curl -s -o ~/Pictures/wallpaper/wk-progress.1.png "https://wkgen.homeserver.box/?k=7b98a684-5c91-44ab-86b1-f7023609fe4e&d=1"
|
||||
echo "[$(eval $date)]: setting wallpaper..." | tee -a $logfile
|
||||
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:///home/plex/Pictures/wallpaper/wk-progress.1.png");
|
||||
}'
|
||||
echo "[$(eval $date)]: done" | tee -a $logfile
|
Loading…
Add table
Reference in a new issue