diff options
author | Marvin Borner | 2023-08-29 15:44:16 +0200 |
---|---|---|
committer | Marvin Borner | 2023-08-29 15:46:00 +0200 |
commit | 8f6e86ee72a20fc9bbac62d71e0921b152eaa0bb (patch) | |
tree | 2feb0ee3276bc24ab847a57938fd9fc281b260d7 /.scripts/beep | |
parent | e6e5c70f6cc741e0edee2f0c1de07909d1c91edc (diff) |
Sync
Not much tbh. I'm fairly happy with my setup
Diffstat (limited to '.scripts/beep')
-rwxr-xr-x | .scripts/beep | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.scripts/beep b/.scripts/beep index c334bd9..60c93c1 100755 --- a/.scripts/beep +++ b/.scripts/beep @@ -1,4 +1,9 @@ -#!/bin/sh +#!/bin/bash -(amixer get Speaker | grep "off" &>/dev/null) || exit 0 # only beep on headphones -paplay $HOME/.scripts/beep.ogg & +# only beep on headphones +(amixer get Speaker | grep "off" &>/dev/null) && (paplay "$HOME/.scripts/beep.ogg" &) + +# ( +# sleep 0.5 +# dunstctl action +# ) & |