Update theming for KDE

This commit is contained in:
albert 2024-06-13 19:59:35 +09:00
parent 5b294d219d
commit 7510fba021
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -50,10 +50,14 @@
echo "set-theme.service - Checking for theme settings"
if [ ! -f /tmp/wttr.sunrise ] ; then
systemctl --user start get-theme-times.service
fi
fi
echo "Getting dates:"
SUNRISE=`date -d \`cat /tmp/wttr.sunrise\` +%s`
echo "Sunrise: $SUNRISE"
SUNSET=`date -d \`cat /tmp/wttr.sunset\` +%s`
echo "Sunset: $SUNSET"
CURRENT=`date +%s`
echo "Current: $CURRENT"
if [ $CURRENT -gt $SUNRISE -a $CURRENT -lt $SUNSET ] ; then
# /run/current-system/sw/bin/plasma-apply-colorscheme -system offscreen Arc
/run/current-system/sw/bin/plasma-apply-colorscheme Arc