diff options
| author | Robert Günzler <r@gnzler.io> | 2020-12-03 12:54:58 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-12-07 19:28:05 +0100 |
| commit | c594c384632c9a023258a5ac43f5e28563d4b974 (patch) | |
| tree | 9491815c8e698ba58c5e4270df9d16ce9a9a53ce | |
| parent | a3b550a9a94d836dbf612465b99889b75e51425a (diff) | |
Add bin/beep; beeps
| -rwxr-xr-x | bin/beep | 16 |
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}" |