Browse Source

Use notify-send to handle local notifications

Samuel W. Flint 4 years ago
parent
commit
01a78680b9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      send-notification

+ 2 - 2
send-notification

@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if [ $# -eq 2 ] ; then
-    twmnc -t "$2" -c "$1"
+    notify-send "${1}" "${2}" 
     curl -s \
          -F "token=acioo737xpg83udi17sdsevmjox5eg" \
          -F "user=u4wih2x18os74469f6zj9jggd7mbon" \
@@ -9,7 +9,7 @@ if [ $# -eq 2 ] ; then
          -F "title=\"$1\"" \
          https://api.pushover.net/1/messages.json
 else
-    twmnc -c ""$1
+    notify-send "${1}"
     curl -s \
          -F "token=acioo737xpg83udi17sdsevmjox5eg" \
          -F "user=u4wih2x18os74469f6zj9jggd7mbon" \