send-notification 330 B

12345678910111213
  1. #!/bin/sh
  2. if [ $# -eq 2 ] ; then
  3. notify-send "${1}" "${2}"
  4. if [ ! -z $TM_USERNAME ] ; then
  5. tm send --text="${1}: ${2}" --phones=$NOTIFICATION_PHNUM > /dev/null
  6. fi
  7. else
  8. notify-send "${1}"
  9. if [ ! -z $TM_USERNAME ] ; then
  10. tm send --text="${1}" --phones=$NOTIFICATION_PHNUM > /dev/null
  11. fi
  12. fi