commit 7ec639705b562d23beb4b0f7d0ea3e3845e71557 parent a67fbd93e96e81cf6102e70d27998ed5f9f08a24 Author: clamiax <smoppy@gmail.com> Date: Wed, 2 Sep 2015 14:03:36 +0200 [acpi] Produce three 1ms/500hz sounds when battery is warning. Assuming play(1) (sox) is installed. Diffstat:
M | acpi | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/acpi b/acpi @@ -8,7 +8,12 @@ LIDSTATE="$(cat /proc/acpi/button/lid/LID/state |awk '{print $2}')" warning() { L=" OK " - xmessage -center -buttons "$L" -default "$L" "WARNING: battery level is ${t}%" + xmessage -center -buttons "$L" -default "$L" "WARNING: battery level is ${t}%" & + + for i in $(seq 3) + do + play -qn synth 00:00.1 sine 500 + done } suspend() {