Comments (15)
Do you mean globally configuring terminal-notifier
to always use 'sticky' notifications, via System Preferences?
I'd still love a way to control 'stickiness' on a per-invocation basis, analogous to what growlnotify
offers for Growl.
Like you, however, I don't know if the Notification Center APIs allow that.
from terminal-notifier.
+1 for per-notification stickiness
from terminal-notifier.
Here's a PR to add a note about the system preference to the README: #244
from terminal-notifier.
Totally goofed on this one. I see now that the user can do this themselves. doh! This issue should be closed.
from terminal-notifier.
+1 for per-notification stickiness
from terminal-notifier.
There does not appear to be a sanctioned API for this, in case anyone finds a solution let me know.
from terminal-notifier.
Currently you are using Banners which doesn't use sticky but Alerts does by default.
from terminal-notifier.
@cdenneen Are you saying that this can be done through the APIs? If so, please let us know or submit a patch.
from terminal-notifier.
It's possible to use Alerts by default by adding this key to Terminal Notifier-Info.plist:
<key>NSUserNotificationAlertStyle</key>
<string>alert</string>
But I don't see how we could switch styles on demand.
from terminal-notifier.
It would definitely be nice to have a command line option for stickiness, instead of having to set it globally in System Preferences.
from terminal-notifier.
Absolutely agree. This is the only reason I still use growlnotify for some things
On May 2, 2014, at 2:21 PM, ceilingcat [email protected] wrote:
It would definitely be nice to have a command line option for stickiness, instead of having to set it globally in System Preferences.
—
Reply to this email directly or view it on GitHub.
from terminal-notifier.
Wouldn't it work if you change globally to Alerts from Banners, then accept an expiration option (and default it if not set), then use a LaunchAgent to clean up expired notifcations?
from terminal-notifier.
But alerts "steal focus" right? That would be exactly what I do not. I just want something to stay there until I can deal with it.
from terminal-notifier.
Alerts don't appear to steal focus. I checked by running this sleep 5 && terminal-notifier -message test
and then switching to a few different apps before the notification was activated. It didn't steal focus from any of them.
from terminal-notifier.
You can use the -timeout
flag to dismiss the notification automatically after a duration. This works with the alert style notification. Another idea (which is far from ideal) is to make a copy of the terminal-notifier app and set original to alert style, and the copied one to banner style (shrug).
from terminal-notifier.
Related Issues (20)
- -sender 'com.apple.AppStore' opens System Preferences, not the App Store app HOT 1
- Just use alerter? HOT 2
- macOS ARM support? (Apple Silicon) HOT 1
- `terminal-notifier` errors on macOS Big Sur HOT 11
- How button text(actions) supports Chinese HOT 1
- [INFO] macOS Big Sur 11.0 beta reports & issues HOT 13
- Snooze
- Stacked notifications? HOT 3
- -open: Click terminal-notification then brings another notification HOT 12
- -activate not work with icon.
- No Notification in macOS12.1 HOT 6
- dropping msg 1 app not found HOT 3
- Mention in README that sticky notifications can be controlled by System Prefs
- Fail to pop up when trigger in python subprogess with crontab -e HOT 1
- how can I customize alert sounds HOT 1
- Can't play system alert sounds on Ventura 13.1
- use -sender will stuck on ventura HOT 1
- notifications are muted and i can't unmute HOT 1
- cannot use with teams deeplinks
- The timeout option is no longer available?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terminal-notifier.