bgnotify - notification icons from sending app

"-sender" uses the same BundleID as "-activate" so we can display the terminal app's corresponding icon.
This commit is contained in:
Aaron Burchfield 2015-03-26 19:06:41 -07:00
commit 1d5faf6f72

View file

@ -42,7 +42,7 @@ terminalBundleID () {
bgnotify () {
if hash terminal-notifier 2>/dev/null; then #osx
terminal-notifier -message "$2" -title "$1" -activate "$(terminalBundleID)"
terminal-notifier -message "$2" -title "$1" -activate "$(terminalBundleID)" -sender "$(terminalBundleID)"
elif hash growlnotify 2>/dev/null; then #osx growl
growlnotify -m $1 $2
elif hash notify-send 2>/dev/null; then #ubuntu!