Open robksawyer opened 3 years ago
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.
@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
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):
Possible to add stacked notifications? Right now one notification gets replaced with another one. Thanks, loving it.