-
-
Notifications
You must be signed in to change notification settings - Fork 26k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background notifications on long-running commands #3301
Conversation
- maybe someday use GetForegroundWindow() from User32.lib ...
Having this has been a huge productivity boost for me-- I'd love to see it more well used and easily enabled. Similar scripts have cropped up but have been very platform specific. When I started running ubuntu desktop regularly this was the first thing I missed. Adding it as an oh-my-zsh plugin seems perfectly in-line with the project and I spent the time to build and test it to work with as many platforms as possible. Any feedback on the code, documentation, and/or functionality? |
@t413 thank you for this very well-crafted PR. Do you have a notion of another program that works on non-Unity Linux setups? |
Thanks! Researching notify-send on linux shows that it's actually a relatively standard utility. Here's the Arch linux wiki page on the topic. Are you running a particular setup you'd like me to test against? |
Thank you for that initial push. I actually looked it up a little bit and found this post that got me in the right direction. TL;DR: on Debian you need to install |
Background notifications on long-running commands
This looks really cool! |
+1 I kept smth like this in my custom plugins. Grabbed it from the reddit post. It's really cool that it made it to official plugins. |
Get background notifications for long running commands! Running a build? A deploy? Moving files? Anything that takes more than 6 seconds (easily configurable) sends you a slick and unobtrusive system notification:
It works with osx notification center (using terminal-notifier), ubuntu's native
notify-send
, and cygwin:Linux
Windows
It supports having a custom message hook (in case you need it to say 'holy smokes batman' for example).
There are a few hacks to do the same thing-- often making heavy use of AppleScript and being very platform-spesefic. This plugin makes a point to run on all three major platforms.