diff --git a/home-manager/home.nix b/home-manager/home.nix index 832b544..44d304a 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -128,18 +128,13 @@ in # Calculate the sunrise and sunset times for today using sunwait sunrise_time=$(sunwait rise $LATITUDE $LONGITUDE | awk '{print $2}') sunset_time=$(sunwait set $LATITUDE $LONGITUDE | awk '{print $2}') + echo $sunrise_time + echo $sunset_time - # Compare current time with sunrise and sunset times if [[ "$current_time" > "$sunrise_time" && "$current_time" < "$sunset_time" ]]; then - # It's daylight, run the "daytime" command echo "It's daylight. Running daytime command..." - # Replace the following line with the command you want to run during the day - /path/to/daytime_command else - # It's night, run the "nighttime" command echo "It's night. Running nighttime command..." - # Replace the following line with the command you want to run during the night - /path/to/nighttime_command fi ''; executable = true;