From 6b4a63f58846265da3b95a8fc7db343ef5b217e8 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Sun, 29 May 2022 00:36:55 +0200 Subject: [PATCH] Write battery status to stdout. --- .local/bin/battmon | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/battmon b/.local/bin/battmon index be3568b..94f12d0 100755 --- a/.local/bin/battmon +++ b/.local/bin/battmon @@ -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."