diff --git a/home-manager/home.nix b/home-manager/home.nix index 08c55ca..c8b860c 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -135,9 +135,9 @@ in run_a_command while sleep 5; do new_light=$(sunwait poll $LATITUDE $LONGITUDE) - if [[ "$new_light" != "$light" ]]; do + if [[ "$new_light" != "$light" ]]; then run_a_command - do + fi done ''; executable = true;