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"