terminal-notifier icon indicating copy to clipboard operation
terminal-notifier copied to clipboard

Stacked notifications?

Open robksawyer opened this issue 3 years ago • 3 comments

Possible to add stacked notifications? Right now one notification gets replaced with another one. Thanks, loving it.

robksawyer avatar Mar 09 '21 10:03 robksawyer

Look at the README's option for group

-group ID

Specifies the notification’s ‘group’. For any ‘group’, only one notification will ever be shown, replacing previously posted notifications.

If you don't have that then they should stack.

https://github.com/julienXX/terminal-notifier#options

kevinjalbert avatar May 18 '21 18:05 kevinjalbert

@kevinjalbert this doesn't work.

What I did:

  • wrote script terminal-notifier-stask.sh
terminal-notifier -message "group1"  -group group1
terminal-notifier -message "group2"  -group group2
terminal-notifier -message "group3"  -group group3
terminal-notifier -message "group4"  -group group4
terminal-notifier -message "group5"  -group group5
  • run it: bash terminal-notifier-stask.sh

  • got this output

* Removing previously sent notification, which was sent on: 2022-08-25 19:11:26 +0000
* Removing previously sent notification, which was sent on: 2022-08-25 19:11:26 +0000
* Removing previously sent notification, which was sent on: 2022-08-25 19:11:26 +0000
* Removing previously sent notification, which was sent on: 2022-08-25 19:11:26 +0000
* Removing previously sent notification, which was sent on: 2022-08-25 19:11:26 +0000

Notifications were played one by one in the same place.

Is there any working sample for stacked notifications available? Thank you.

macOS Catalina 10.15.7

abcdenis avatar Aug 25 '22 19:08 abcdenis

If I had to take a guess it is possible you had run the script before and terminal-notifier was behaving as expected. The 'previously' sent notification might still have resided in the control center area of MacOS, even though it auto-hide.

I'm on terminal-notifier 2.0.0, macOS Monterey 12.4 (21F79).

When I tried it out everything worked as expected (group1 msg was replaced):

image

kevinjalbert avatar Aug 28 '22 17:08 kevinjalbert