mirror of https://gitlab.com/dabruh/dotfiles.git
Renamed and fixed bug.
This commit is contained in:
parent
434168baaa
commit
0d82f81b5a
|
@ -5,4 +5,4 @@ mode "system" {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Battery manager
|
# Battery manager
|
||||||
exec_always --no-startup-id killall battmon.sh; ~/.config/i3/scripts/battmon.sh
|
exec_always --no-startup-id killall battmon; ~/.config/i3/scripts/battmon
|
||||||
|
|
|
@ -29,7 +29,7 @@ function levelIsCritical() {
|
||||||
[[ $(getLevel) -le $BAT_LEVEL_CRITICAL ]] && echo true || echo false
|
[[ $(getLevel) -le $BAT_LEVEL_CRITICAL ]] && echo true || echo false
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $(_acpib | wc -l) -gt 0 ]]; then
|
if ! [[ $(_acpib | wc -l) -gt 0 ]]; then
|
||||||
echo "No batteries installed."
|
echo "No batteries installed."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue