From 49db091e9f6c684c109fe9f3c9f452e8cd0dcb0a Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 1 Jan 2025 22:29:02 +0000 Subject: [PATCH] [bluetooth_dmenu.pl]: Add bluetooth icon to notifications --- src/bluetooth_dmenu.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bluetooth_dmenu.pl b/src/bluetooth_dmenu.pl index 5803444..43dd7fd 100755 --- a/src/bluetooth_dmenu.pl +++ b/src/bluetooth_dmenu.pl @@ -23,12 +23,12 @@ foreach my $name (sort(keys %devices)) { my $selection = `printf "$device_list" | dmenu -i -p "Connect Bluetooth device:"` or die("No selection made"); chomp($selection); -`notify-send "$script_name" "Attempting to connect to $selection ($devices{$selection})"`; +`notify-send -i bluetooth "$script_name" "Attempting to connect to $selection ($devices{$selection})"`; `bluetoothctl connect $devices{$selection}`; if ($? == 0) { - `notify-send "$script_name" "Successfully connected to $selection ($devices{$selection})"`; + `notify-send -i bluetooth "$script_name" "Successfully connected to $selection ($devices{$selection})"`; } else { - `notify-send "$script_name" "Failed to connect to $selection ($devices{$selection})"`; + `notify-send -i bluetooth "$script_name" "Failed to connect to $selection ($devices{$selection})"`; }