summaryrefslogtreecommitdiff
path: root/scripts/nsend
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nsend')
-rwxr-xr-xscripts/nsend12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/nsend b/scripts/nsend
index 7337b4d..80e1764 100755
--- a/scripts/nsend
+++ b/scripts/nsend
@@ -5,23 +5,23 @@
help() {
cat << EOF
${0}: Wrapper script to send notifications
-
options:
- -s [Name] [Msg] Send Msg with Name
- -s [Msg] Send Msg Without Name
- -h Print this message and exit
+ -s [Name] [Msg] Send Msg with Name
+ -s [Msg] Send Msg Without Name
+ -h Print this message and exit
EOF
exit 0
}
-check_program "notify-send" "dunst must be installed"
+check_program "notify-send" "libnotify must be installed"
case "${1}" in
"-s")
[ "${#}" -gt 3 ] && invalid_use
- run "notify-send ${2} ${3}"
+ shift
+ eval $(printf 'notify-send "%s" "%s"' "${1}" "${2}")
exit 0
;;