From 73b3ffc1be21a0899d20ea78aac6fc23870b2b58 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 18 Jun 2024 12:54:17 +0900 Subject: [PATCH] Testing --- 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 09d87906..b28fc735 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -54,9 +54,11 @@ systemctl --user start get-theme-times.service fi echo "Getting dates:" - SUNRISE=$(date -d "$(cat /tmp/wttr.sunset)" +%s) + sr=$(cat /tmp/wttr.sunrise) + ss=$(cat /tmp/wttr.sunset) + SUNRISE=`date -d $sr +%s` echo "Sunrise: $SUNRISE" - SUNSET=$(date -d "$(cat /tmp/wttr.sunset)" +%s) + SUNSET=`date -d $ss +%s` echo "Sunset: $SUNSET" CURRENT=`date +%s` echo "Current: $CURRENT"