herbe

[fork] notifications
Log | Files | Refs | README | LICENSE

commit b2fad7cd38aec22ee7cd9963c4a4f28a3c59b2b2
parent bf203580b96f702b23462d273a8a6a0bb0fdd1c9
Author: Samuel Dudík <24730635+dudik@users.noreply.github.com>
Date:   Tue, 18 Aug 2020 19:53:51 +0200

Update README.md
Diffstat:
MREADME.md | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -20,12 +20,13 @@ A notification can be dismissed either by clicking on it with `DISMISS_BUTTON` ( ```shell $ pkill -SIGUSR1 herbe ``` +Dismissed notifications return exit code 2. ### Actions Action is a piece of shell code that runs when a notification gets accepted. Accepting a notification is the same as dismissing it, but you have to use either `ACTION_BUTTON` (defaults to right mouse button) or the `SIGUSR2` signal. -An accepted notification always returns exit code 3. To specify an action: +An accepted notification always returns exit code 0. To specify an action: ```shell -$ herbe "Notification body" ; [ $? -eq 3 ] && echo "This is an action" +$ herbe "Notification body" && echo "This is an action" ``` Where everything after `&&` is the action and will get executed after the notification gets accepted.