aboutsummaryrefslogtreecommitdiff
path: root/.scripts/beep
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/beep')
-rwxr-xr-x.scripts/beep11
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
+# ) &