From 2903022c3f8947bd0b0eb4f7baf3142530f8ad3f Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 13 Jun 2024 14:27:02 +0900 Subject: [PATCH] Update plasma theme switcher --- nixos/common/desktops/plasma6/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index 2ca9ae13..579764d5 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -56,9 +56,11 @@ SUNSET=`date -d \`cat /tmp/wttr.sunset\` +%s` CURRENT=`date +%s` 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 else - /run/current-system/sw/bin/plasma-apply-colorscheme -system offscreen ArcDark + # /run/current-system/sw/bin/plasma-apply-colorscheme -system offscreen ArcDark + /run/current-system/sw/bin/plasma-apply-colorscheme ArcDark fi echo "set-theme.service - Complete" '';