From 1a9bc7a60277f8e0fb932bc040532125e49dd633 Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Mon, 3 Oct 2022 20:53:23 +0200 Subject: [PATCH] Adapt battery i3block to not show mouse battery --- i3/.config/i3/i3blocks/battery/battery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);