diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index cab5a28..7a3de94 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -50,17 +50,17 @@ function _auto_notify_message() { title="$(_auto_notify_format "$title" "$command" "$elapsed" "$exit_code")" body="$(_auto_notify_format "$text" "$command" "$elapsed" "$exit_code")" - local urgency="default" + local urgency="3" local icon=${AUTO_NOTIFY_ICON_SUCCESS:-""} # Exit code 130 is returned when a process is terminated with SIGINT. # Since the user is already interacting with the program, there is no # need to make the notification persistent. if [[ "$exit_code" != "0" ]] && [[ "$exit_code" != "130" ]]; then - urgency="high" + urgency="4" icon=${AUTO_NOTIFY_ICON_FAILURE:-""} fi - local arguments=("--title='$title'" "--priority='$urgency'" "zsh_events" "$body") + local arguments=("--title='$title'" "--priority=$urgency" "zsh_events" "$body") ntfy publish ${arguments[@]} }