diff --git a/i3/.config/i3/i3blocks/battery/battery b/i3/.config/i3/i3blocks/battery/battery index c2e72f8..c7062eb 100755 --- a/i3/.config/i3/i3blocks/battery/battery +++ b/i3/.config/i3/i3blocks/battery/battery @@ -25,7 +25,7 @@ my $short_text; my $bat_number = $ENV{BLOCK_INSTANCE} || 0; # read the first line of the "acpi" command output -open (ACPI, "acpi -b | grep 'Battery $bat_number' |") or die; +open (ACPI, "acpi -b | grep -v 'unavailable' |") or die; $acpi = ; close(ACPI);