diff --git a/src/bluetooth_info.pl b/src/bluetooth_info.pl index 7052655..bcf564e 100755 --- a/src/bluetooth_info.pl +++ b/src/bluetooth_info.pl @@ -16,4 +16,5 @@ my %icons = ( "audio-headset" => "" ); -printf("$icons{$icon} $device_name $battery_percentage%%"); +printf("$icons{$icon} ") if exists $icons{$icon}; +printf("$device_name $battery_percentage%%");