helm/bin/notify
2017-08-09 15:33:18 +02:00

10 lines
235 B
Bash
Executable file

#!/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"
;;
esac