wkgen plasma
This commit is contained in:
parent
381f3957c7
commit
ccf13e8780
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
date='date +%Y-%m-%d\ %T'
|
||||
logfile=~/.wkgen.log
|
||||
filelocation=/home/plex/Pictures/wallpaper/wk-progress.1.png
|
||||
set -e
|
||||
echo "[$(eval $date)]: starting webrequests..." | tee -a $logfile
|
||||
curl -s -o $filelocation "https://wkgen.homeserver.box/?k=7b98a684-5c91-44ab-86b1-f7023609fe4e&d=1"
|
||||
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
|
||||
echo "[$(eval $date)]: done" | tee -a $logfile
|
Loading…
Reference in New Issue