wkgen plasma

This commit is contained in:
Christoph J. Scherr 2023-12-16 14:11:41 +01:00
parent 381f3957c7
commit ccf13e8780
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
1 changed files with 13 additions and 0 deletions

13
wanikaliwallpaper-plasma.sh Executable file
View File

@ -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