summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/xyz/.bashrc1
-rw-r--r--home/xyz/.config/sxhkd/sxhkdrc4
-rwxr-xr-xhome/xyz/.local/bin/bell7
3 files changed, 11 insertions, 1 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc
index ba1a2d55..f4653a03 100644
--- a/home/xyz/.bashrc
+++ b/home/xyz/.bashrc
@@ -50,7 +50,6 @@ alias tree='tree -a'
# different name
# /dev/ttyACM0 can be in config file, or as environmantal variable, see /usr/share/doc/adafruit-ampy/README.md
-alias anw='echo "notify-send -u critical Boiling\ Water!" | at now + 10 minutes'
alias ap='sudo ampy -p /dev/ttyACM0'
alias c=cfg
alias g=git
diff --git a/home/xyz/.config/sxhkd/sxhkdrc b/home/xyz/.config/sxhkd/sxhkdrc
index d529d606..17e75a94 100644
--- a/home/xyz/.config/sxhkd/sxhkdrc
+++ b/home/xyz/.config/sxhkd/sxhkdrc
@@ -51,7 +51,11 @@ alt + q
kill -RTMIN+4 "$(cat "$XDG_CACHE_HOME/pidofbar")";\
qbittorrent
+# close dunst Notification
alt + n
dunstctl close
+alt + shift + n
+ echo 'notify-send -u critical Boiling\ Water!; bell' | at now + 12 minutes && notify-send "Successfully Scheduled"
+
# vim: ft=sh
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"