Giter VIP home page Giter VIP logo

Comments (15)

mklement0 avatar mklement0 commented on May 22, 2024 1

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.

zeke avatar zeke commented on May 22, 2024 1

+1 for per-notification stickiness

from terminal-notifier.

glasser avatar glasser commented on May 22, 2024 1

Here's a PR to add a note about the system preference to the README: #244

from terminal-notifier.

briancordanyoung avatar briancordanyoung commented on May 22, 2024

Totally goofed on this one. I see now that the user can do this themselves. doh! This issue should be closed.

from terminal-notifier.

philfreo avatar philfreo commented on May 22, 2024

+1 for per-notification stickiness

from terminal-notifier.

alloy avatar alloy commented on May 22, 2024

There does not appear to be a sanctioned API for this, in case anyone finds a solution let me know.

from terminal-notifier.

cdenneen avatar cdenneen commented on May 22, 2024

Currently you are using Banners which doesn't use sticky but Alerts does by default.

from terminal-notifier.

alloy avatar alloy commented on May 22, 2024

@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.

julienXX avatar julienXX commented on May 22, 2024

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.

ceilingcat avatar ceilingcat commented on May 22, 2024

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.

tjluoma avatar tjluoma commented on May 22, 2024

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.

y avatar y commented on May 22, 2024

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.

tjluoma avatar tjluoma commented on May 22, 2024

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.

y avatar y commented on May 22, 2024

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.

Lvl2Pillow avatar Lvl2Pillow commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.