herbe

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

commit eb1b49f2f8eb22fdc22f38df78116b2e0c04724c
parent 2e781f19cd7f7ec90fc26485ea771f892ff8eaa6
Author: Samuel Dudík <24730635+dudik@users.noreply.github.com>
Date:   Sun, 16 Aug 2020 14:08:18 +0200

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

diff --git a/README.md b/README.md @@ -25,7 +25,7 @@ $ pkill -SIGUSR1 herbe 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: ```shell -$ herbe "Notificatio body" ; [ $? -eq 3 ] && echo "This is an action" +$ herbe "Notification body" ; [ $? -eq 3 ] && echo "This is an action" ``` Where everything after `&&` is the action and will get executed after the notification gets accepted. @@ -42,7 +42,7 @@ But by default `herbe` prints `\n` literally: ```shell $ herbe "First line\nStill the first line" ``` -Output of other programs will get printed correctly, just make to escape it (so you don't end up with every word on a separate line): +Output of other programs will get printed correctly, just make sure to escape it (so you don't end up with every word on a separate line): ```shell $ herbe "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ```