summary refs log tree commit diff
path: root/bin/beep
blob: 4d0e16b8e3b0e5c4cc7e253f745d5c667a6513a8 (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 paplay \
	--property=media.role=event \
	--volume="${vol}" \
	"${snd}"