mirror of https://gitlab.com/dabruh/dotfiles.git
Write battery status to stdout.
This commit is contained in:
parent
0d82f81b5a
commit
6b4a63f588
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue