From ccf13e8780862948066642f99a68657938ef1663 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 16 Dec 2023 14:11:41 +0100 Subject: [PATCH] wkgen plasma --- wanikaliwallpaper-plasma.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 wanikaliwallpaper-plasma.sh diff --git a/wanikaliwallpaper-plasma.sh b/wanikaliwallpaper-plasma.sh new file mode 100755 index 0000000..6bf3525 --- /dev/null +++ b/wanikaliwallpaper-plasma.sh @@ -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