From c594c384632c9a023258a5ac43f5e28563d4b974 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 3 Dec 2020 12:54:58 +0100 Subject: Add bin/beep; beeps --- bin/beep | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/beep diff --git a/bin/beep b/bin/beep new file mode 100755 index 0000000..b493174 --- /dev/null +++ b/bin/beep @@ -0,0 +1,16 @@ +#!/bin/sh +vol=${BEEP_VOL:-0.5} +snd=${BEEP_SND:-$HOME/Music/sounds/miui/complete.ogg} +subject=${BEEP_SUB:-beep} +message=${BEEP_MSG:-"ringing the bell..."} +icon=${BEEP_ICN:-/usr/share/icons/Adwaita/scalable/status/task-due-symbolic.svg} + +notify-send -a beep -u normal -i "${icon}" \ + "${subject}" "${message}" & + +tput bel & + +exec pw-play \ + --media-role=event \ + --volume="${vol}" \ + "${snd}" -- cgit 1.4.1