diff --git a/bin/alert b/bin/alert index 0cc392e..d4fdd68 100755 --- a/bin/alert +++ b/bin/alert @@ -1,6 +1,6 @@ #!/bin/bash -MSG=$@ +TITLE=$1 +MSG=$2 -echo -e '\a' -osascript -e "tell application (path to frontmost application as text) to display dialog \"$MSG\" buttons {\"OK\"} with icon note" &> /dev/null +osascript -e "display notification \"$MSG\" with title \"$TITLE\" sound name \"Ping\"" &> /dev/null