Renamed and fixed bug.

This commit is contained in:
dabruh 2022-05-29 00:32:02 +02:00
parent 434168baaa
commit 0d82f81b5a
2 changed files with 2 additions and 2 deletions

View File

@ -5,4 +5,4 @@ mode "system" {
}
# 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

View File

@ -29,7 +29,7 @@ function levelIsCritical() {
[[ $(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."
exit 0
fi