summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/bell
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin/bell')
-rwxr-xr-xhome/xyz/.local/bin/bell7
1 files changed, 7 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/bell b/home/xyz/.local/bin/bell
new file mode 100755
index 00000000..a11b17b9
--- /dev/null
+++ b/home/xyz/.local/bin/bell
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+bef="$(amixer get Master | awk -F '[][]' 'END{print $2}')"
+amixer set Master 30%
+# code steal from https://unix.stackexchange.com/a/163716/459013
+speaker-test -t sine -f 1000 -l 1
+amixer set Master "$bef"