From 6fc80fa87f5fab1f204c4d7bb18c2e02e97c288f Mon Sep 17 00:00:00 2001 From: Noah Schlenker <51035972+noahpy@users.noreply.github.com> Date: Sun, 21 Apr 2024 20:24:39 +0200 Subject: Apply suggestions from code review Co-authored-by: Arne <78976058+4rneee@users.noreply.github.com> --- bluetooth-devices.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bluetooth-devices.sh b/bluetooth-devices.sh index c93bf84..25819b3 100755 --- a/bluetooth-devices.sh +++ b/bluetooth-devices.sh @@ -15,7 +15,7 @@ connect_bluetooth() { } -disconnect_bluetooth(){ +disconnect_bluetooth() { local MAC=$1 local DEVICE=$2 if bluetoothctl disconnect $MAC | grep -q 'successful' @@ -26,7 +26,7 @@ disconnect_bluetooth(){ fi } -# Opens dmenu prompt, which lets you decide which device you want to connect to +# Opens dmenu prompt, which lets you decide which device you want to connect to / disconnect from DEVICE=$(bluetoothctl devices | sed 's/[^ ]* //' | sed 's/[^ ]* //' | dmenu -i) # If dmenu was cancelled, exit program -- cgit 1.4.1