summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/beep16
1 files changed, 16 insertions, 0 deletions
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:-"<i>ringing the bell...</i>"}
+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}"