terminal-notifier
terminal-notifier copied to clipboard
Stacked notifications?
Possible to add stacked notifications? Right now one notification gets replaced with another one. Thanks, loving it.
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 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):
![image](https://user-images.githubusercontent.com/574871/187087806-f6ddfe40-5c32-4508-907f-901f1b3c3020.png)