mirror of
https://github.com/arcan1s/dotfiles.git
synced 2025-04-24 16:07:17 +00:00
fix error in battery definition
This commit is contained in:
parent
23d213584e
commit
715ea56ecc
@ -28,9 +28,9 @@ precmd() {
|
|||||||
done
|
done
|
||||||
_bat_perc=$((${_bat_perc}/${_num}))
|
_bat_perc=$((${_bat_perc}/${_num}))
|
||||||
local _col
|
local _col
|
||||||
if [[ ${_bat_perc} < 15 ]]; then
|
if [[ ${_bat_perc} -lt 15 ]]; then
|
||||||
_col="%{$fg_bold[red]%}"
|
_col="%{$fg_bold[red]%}"
|
||||||
elif [[ ${_bat_perc} < 50 ]]; then
|
elif [[ ${_bat_perc} -lt 50 ]]; then
|
||||||
_col="%{$fg_bold[yellow]%}"
|
_col="%{$fg_bold[yellow]%}"
|
||||||
else
|
else
|
||||||
_col="%{$fg_bold[green]%}"
|
_col="%{$fg_bold[green]%}"
|
||||||
|
Loading…
Reference in New Issue
Block a user