Write battery status to stdout.

This commit is contained in:
dabruh 2022-05-29 00:36:55 +02:00
parent 0d82f81b5a
commit 6b4a63f588
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ if ! [[ $(_acpib | wc -l) -gt 0 ]]; then
fi
while true; do
echo "$(date --iso-8601=seconds):$(getLevel)"
if eval "$(isDischarging)"; then
if eval "$(levelIsCritical)"; then
i3-nagbar -t warning -m "$(getLevelMessage) which is below the critical level of $BAT_LEVEL_CRITICAL%. The computer will be suspended in 30 seconds unless charged."