Adapt battery i3block to not show mouse battery
This commit is contained in:
parent
60c4484fd6
commit
1a9bc7a602
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue