#!/bin/sh

if [ $# -eq 2 ] ; then
    notify-send "${1}" "${2}" 
    curl -s \
         -F "token=acioo737xpg83udi17sdsevmjox5eg" \
         -F "user=u4wih2x18os74469f6zj9jggd7mbon" \
         -F "message=\"$2\"" \
         -F "title=\"$1\"" \
         https://api.pushover.net/1/messages.json
else
    notify-send "${1}"
    curl -s \
         -F "token=acioo737xpg83udi17sdsevmjox5eg" \
         -F "user=u4wih2x18os74469f6zj9jggd7mbon" \
         -F "message=\"$1\"" \
         https://api.pushover.net/1/messages.json
fi
