Adapt battery i3block to not show mouse battery

This commit is contained in:
JuliusFreudenberger 2022-10-03 20:53:23 +02:00
parent 60c4484fd6
commit 1a9bc7a602

View file

@ -25,7 +25,7 @@ my $short_text;
my $bat_number = $ENV{BLOCK_INSTANCE} || 0; my $bat_number = $ENV{BLOCK_INSTANCE} || 0;
# read the first line of the "acpi" command output # 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 = <ACPI>; $acpi = <ACPI>;
close(ACPI); close(ACPI);