From 62cef1063ad765eea12cf08e99fc042e5c303987 Mon Sep 17 00:00:00 2001 From: xyz Date: Mon, 1 Nov 2021 23:39:46 -0700 Subject: move notify water to sxhkdrc, add new script ring bell --- home/xyz/.bashrc | 1 - home/xyz/.config/sxhkd/sxhkdrc | 4 ++++ home/xyz/.local/bin/bell | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 home/xyz/.local/bin/bell (limited to 'home/xyz') 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" -- cgit v1.2.3-70-g09d2