Browse Source

added notification script for alarms

main
Stefan Pranger 3 years ago
parent
commit
46af41e99a
  1. 13
      notification.sh

13
notification.sh

@ -0,0 +1,13 @@
#!/bin/sh
NOTIFICATION=dunstify
[ "$#" -lt 2 ] && echo "Usage: ./notification.sh WAIT_TIME TITLE <SUMMARY> \n\tNote: The first **two** arguments are necessary" && exit 1
WAIT_TIME=$1
TITLE=$2
SUMMARY=$3
sleep $WAIT_TIME
paplay --volume 50 ~/Music/Sounds/bike_bell.wav &
$NOTIFICATION "Alarm: $TITLE" $SUMMARY
Loading…
Cancel
Save