summaryrefslogtreecommitdiff
path: root/home/xyz/.local
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-11-01 23:39:46 -0700
committerxyz <gky44px1999@gmail.com>2021-11-01 23:39:46 -0700
commit62cef1063ad765eea12cf08e99fc042e5c303987 (patch)
treee5edf1ce3444cf649441874a559460819a510781 /home/xyz/.local
parentada12f4932bf17a00fc9eab591254b240044872a (diff)
move notify water to sxhkdrc, add new script ring bell
Diffstat (limited to 'home/xyz/.local')
-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"