summary refs log tree commit diff
path: root/bin/beep
blob: b49317409b28885e75946483f2bd3a7613e4a1ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}"