helm/bin/notify

10 lines
240 B
Plaintext
Raw Normal View History

2017-08-06 08:34:33 -07:00
#!/usr/bin/env bash
case $OSTYPE in
darwin*)
terminal-notifier -title "$1" -message "$2"
;;
linux*)
DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "$1" "$2" -t 0
;;
esac