Commit 34a8b7ee authored by Glen Mével's avatar Glen Mével

signal a bug in `battery-monitor.sh`

parent f7052742
......@@ -3,6 +3,10 @@
# This script monitors the battery. It shows warnings and adjust power-saving
# parameters when the battery becomes low, and suspend/hibernate the computer
# when the battery becomes critically low.
#
# Note: This script is compatible with TLP (Linux Advanced Power Management) and
# complements it, since TLP does not affect screen brightness, nor suspending.
# https://linrunner.de/en/tlp/docs/tlp-faq.html#conflict
# Battery thresholds, in percents.
THRESHOLD_LOW=20
......@@ -20,6 +24,8 @@ FREQUENCY=30s
command -V acpi >/dev/null || return 1
# How to ring the bell.
# FIXME: This does not work (probably because not outputing to a terminal).
# Use paplay and some sounds from /usr/share/sounds/ instead.
bell() {
duration="$1"
# Save the bell settings.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment