From 23a843e64bf11148e2fc3235a3cf0a118a67a25c Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Mon, 25 Sep 2017 23:35:55 -0700 Subject: [PATCH] Fancy alerts --- bin/alert | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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