From 8db23e14e76987268d522f75121206649b5714c0 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 3 Jan 2024 09:10:42 +0900 Subject: [PATCH] Update systemd --- nixos/common/desktops/plasma6/default.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index b96f458b..38d58158 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -49,7 +49,8 @@ SUNRISE=`fx /tmp/wttr.in .weather[0].astronomy[0].sunrise` NOW=`date +'%I:%M %p'` if [[ $SUNRISE == $NOW ]] ; then - plasma-apply-colorscheme -platform offscreen ArcDark + echo "Setting Arc colorscheme" + plasma-apply-colorscheme -platform offscreen Arc fi ''; serviceConfig.Type = "oneshot"; @@ -59,13 +60,8 @@ path = [ pkgs.at pkgs.fx pkgs.nodejs pkgs.bash ]; script = '' SUNSET=`fx /tmp/wttr.in .weather[0].astronomy[0].sunset` - NOW="04:56 PM" - echo "Sunset: $SUNSET." - echo "Now : $NOW." - if [[ $SUNSET != $NOW ]] ; then - echo "Not sunset." - fi - if [[ $SUNET == $NOW ]] ; then + NOW=`date +'%I:%M %p'` + if [[ $SUNSET == $NOW ]] ; then echo "Setting ArcDark colorscheme" plasma-apply-colorscheme -platform offscreen ArcDark fi @@ -78,12 +74,12 @@ "light-theme" = { enable = false; partOf = [ "light-theme.service" ]; - timerConfig.OnCalendar = [ "*-*-* *:*:00" ]; + timerConfig.OnCalendar = [ "*-*-* *:*:*" ]; }; "dark-theme" = { enable = false; partOf = [ "dark-theme.service" ]; - timerConfig.OnCalendar = [ "*-*-* *:*:00" ]; + timerConfig.OnCalendar = [ "*-*-* *:*:*" ]; }; }; } \ No newline at end of file