From 46af41e99a2422ac0b59459464e9813c15613821 Mon Sep 17 00:00:00 2001 From: Stefan Pranger Date: Fri, 2 Jul 2021 21:33:42 +0200 Subject: [PATCH] added notification script for alarms --- notification.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 notification.sh diff --git a/notification.sh b/notification.sh new file mode 100755 index 0000000..44c1d38 --- /dev/null +++ b/notification.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +NOTIFICATION=dunstify +[ "$#" -lt 2 ] && echo "Usage: ./notification.sh WAIT_TIME TITLE \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