mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
Use colors in alerts in battery_state.
This commit is contained in:
parent
1f318a0e23
commit
6841c9d26b
1 changed files with 2 additions and 2 deletions
|
@ -54,9 +54,9 @@ for bat in $BATS; do
|
|||
|
||||
rem=$(search "$statefile" "remaining capacity: *\(.*\) m[AW]h")
|
||||
if [ "$rem" -lt "$low" ]; then
|
||||
alert="! "
|
||||
alert="\005{=b .r}! "
|
||||
elif [ "$rem" -lt "$warn" ]; then
|
||||
alert="/!\ "
|
||||
alert="\005{= .y}/!\ "
|
||||
else
|
||||
alert=""
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue