docs: add info on sound setting

This commit is contained in:
pseudometa 2023-04-29 12:23:02 +02:00 committed by GitHub
parent a8c9ffe1d7
commit a9bd1d61b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,6 +118,15 @@ An example of how these values can be set is shown below:
export AUTO_NOTIFY_TITLE="Hey! %command has just finished" export AUTO_NOTIFY_TITLE="Hey! %command has just finished"
export AUTO_NOTIFY_BODY="It completed in %elapsed seconds with exit code %exit_code" export AUTO_NOTIFY_BODY="It completed in %elapsed seconds with exit code %exit_code"
**Notificaton Sound**
The notification can also trigger playing a short sound by changing ``AUTO_NOTIFY_USE_SOUND``.
NOTE: This configuration option currently only works for macOS.
::
  # Enable using sound (default: 0)
  export AUTO_NOTIFY_USE_SOUND=1
**Notification Expiration Time** **Notification Expiration Time**
You can set how long a notification sent by ``auto-notify`` will remain showing by setting the environment You can set how long a notification sent by ``auto-notify`` will remain showing by setting the environment