Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Linux: allow notification urgency level to be configured #72

Merged
merged 2 commits into from
Mar 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ set -U __done_notify_sound 1
set -U __done_sway_ignore_visible 1
```

#### For Linux, set the urgency level for notifications sent via notify-send (low, normal, critical).
```fish
set -U __done_notification_urgency_level critical
```

## Support

- [fish](https://fishshell.com) 2.3.0+
Expand Down
3 changes: 2 additions & 1 deletion conf.d/done.fish
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ if test -z "$SSH_CLIENT" # not over ssh
end

else if type -q notify-send # Linux notify-send
set -l urgency
set -l urgency $__done_notification_urgency_level
# override user-defined urgency level if non-zero exitstatus
if test $exit_status -ne 0
set urgency "--urgency=critical"
end
Expand Down