From c8ed908411b4d8fe0c1f53161619442a8ca95fb5 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 14 Jul 2024 20:10:01 +0100 Subject: [PATCH] Show MAC address in bluetooth_connect.pl notifications --- bluetooth_connect.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bluetooth_connect.pl b/bluetooth_connect.pl index ab9261c..2b4f5b7 100755 --- a/bluetooth_connect.pl +++ b/bluetooth_connect.pl @@ -22,12 +22,12 @@ foreach my $name (sort(keys %devices)) { my $selection = `printf "$device_list" | dmenu` or die("No selection made"); chomp($selection); -`notify-send "$script_name" "Attempting to connect to $selection"`; +`notify-send "$script_name" "Attempting to connect to $selection ($devices{$selection})"`; `bluetoothctl connect $devices{$selection}`; if ($? == 0) { - `notify-send "$script_name" "Successfully connected to $selection"`; + `notify-send "$script_name" "Successfully connected to $selection ($devices{$selection})"`; } else { - `notify-send "$script_name" "Failed to connect to $selection"`; + `notify-send "$script_name" "Failed to connect to $selection ($devices{$selection})"`; }