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
13 lines
313 B
#!/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
|