diff --git a/.config/zsh/functions/mx-update-np b/.config/zsh/functions/mx-update-np index 5eadef8..7055386 100755 --- a/.config/zsh/functions/mx-update-np +++ b/.config/zsh/functions/mx-update-np @@ -4,9 +4,13 @@ setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL -local np=$(np-subsonic) -if [[ -n "${np}" ]]; then - mx-set-status "np: $(np-subsonic)" -else - mx-set-status -fi +local np + +while sleep 10; do + np=$(np-subsonic) + if [[ -n "${np}" ]]; then + mx-set-status "np: $(np-subsonic)" + else + mx-set-status + fi +done