|
@@ -1,8 +1,18 @@
|
|
|
#!/bin/sh
|
|
|
|
|
|
-twmnc "$1"
|
|
|
-curl -s \
|
|
|
- -F "token=acioo737xpg83udi17sdsevmjox5eg" \
|
|
|
- -F "user=u4wih2x18os74469f6zj9jggd7mbon" \
|
|
|
- -F "message=\"$1\"" \
|
|
|
- https://api.pushover.net/1/messages.json
|
|
|
+if [ $# -eq 2 ] ; then
|
|
|
+ twmnc -t "$2" -c "$1"
|
|
|
+ curl -s \
|
|
|
+ -F "token=acioo737xpg83udi17sdsevmjox5eg" \
|
|
|
+ -F "user=u4wih2x18os74469f6zj9jggd7mbon" \
|
|
|
+ -F "message=\"$2\"" \
|
|
|
+ -F "title=\"$1\"" \
|
|
|
+ https://api.pushover.net/1/messages.json
|
|
|
+else
|
|
|
+ twmnc -c ""$1
|
|
|
+ curl -s \
|
|
|
+ -F "token=acioo737xpg83udi17sdsevmjox5eg" \
|
|
|
+ -F "user=u4wih2x18os74469f6zj9jggd7mbon" \
|
|
|
+ -F "message=\"$1\"" \
|
|
|
+ https://api.pushover.net/1/messages.json
|
|
|
+fi
|