You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
313 B

  1. #!/bin/sh
  2. NOTIFICATION=dunstify
  3. [ "$#" -lt 2 ] && echo "Usage: ./notification.sh WAIT_TIME TITLE <SUMMARY> \n\tNote: The first **two** arguments are necessary" && exit 1
  4. WAIT_TIME=$1
  5. TITLE=$2
  6. SUMMARY=$3
  7. sleep $WAIT_TIME
  8. paplay --volume 50 ~/Music/Sounds/bike_bell.wav &
  9. $NOTIFICATION "Alarm: $TITLE" $SUMMARY