[bluetooth_info.pl]: Add more icons
This commit is contained in:
@ -11,7 +11,9 @@ my $device_name = ($output =~ /Name:\s+(.*)/) ? "$1" : "unknown";
|
|||||||
my $icon = ($output =~ /Icon:\s+(.*)/) ? "$1" : "";
|
my $icon = ($output =~ /Icon:\s+(.*)/) ? "$1" : "";
|
||||||
my $battery_percentage = ($output =~ /Battery Percentage:\s+\S+\s\(([0-9]+)\)/) ? "$1" : "?";
|
my $battery_percentage = ($output =~ /Battery Percentage:\s+\S+\s\(([0-9]+)\)/) ? "$1" : "?";
|
||||||
|
|
||||||
if ($icon eq "audio-headphones") {
|
my %icons = (
|
||||||
printf(" ");
|
"audio-headphones" => "",
|
||||||
}
|
"audio-headset" => ""
|
||||||
printf("$device_name $battery_percentage%%");
|
);
|
||||||
|
|
||||||
|
printf("$icons{$icon} $device_name $battery_percentage%%");
|
||||||
|
Reference in New Issue
Block a user