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

@ -51,9 +51,13 @@
if [ ! -f /tmp/wttr.sunrise ] ; then if [ ! -f /tmp/wttr.sunrise ] ; then
systemctl --user start get-theme-times.service systemctl --user start get-theme-times.service
fi fi
echo "Getting dates:"
SUNRISE=`date -d \`cat /tmp/wttr.sunrise\` +%s` SUNRISE=`date -d \`cat /tmp/wttr.sunrise\` +%s`
echo "Sunrise: $SUNRISE"
SUNSET=`date -d \`cat /tmp/wttr.sunset\` +%s` SUNSET=`date -d \`cat /tmp/wttr.sunset\` +%s`
echo "Sunset: $SUNSET"
CURRENT=`date +%s` CURRENT=`date +%s`
echo "Current: $CURRENT"
if [ $CURRENT -gt $SUNRISE -a $CURRENT -lt $SUNSET ] ; then 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 -system offscreen Arc
/run/current-system/sw/bin/plasma-apply-colorscheme Arc /run/current-system/sw/bin/plasma-apply-colorscheme Arc