summary refs log tree commit diff
path: root/home/.local/bin/notify-send
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-09 23:53:46 -0400
committerJune McEnroe <june@causal.agency>2018-08-09 23:53:46 -0400
commit19648d8b18d290fbbfc471b5984c8782c752f958 (patch)
treebd8bad213ea2a8508321dbb2dc4ac1547973380e /home/.local/bin/notify-send
parentIgnore .o files in vim (diff)
downloadsrc-19648d8b18d290fbbfc471b5984c8782c752f958.tar.gz
src-19648d8b18d290fbbfc471b5984c8782c752f958.zip
Add notify-send mimic for macOS
Diffstat (limited to '')
-rwxr-xr-xhome/.local/bin/notify-send9
1 files changed, 9 insertions, 0 deletions
diff --git a/home/.local/bin/notify-send b/home/.local/bin/notify-send
new file mode 100755
index 00000000..afeb22cc
--- /dev/null
+++ b/home/.local/bin/notify-send
@@ -0,0 +1,9 @@
+#!/usr/bin/osascript
+
+on run argv
+	if count of argv is 2 then
+		display notification (item 2 of argv) with title (item 1 of argv)
+	else
+		display notification "" with title (item 1 of argv)
+	end if
+end run
ighlight'> 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe