about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNoah Schlenker <51035972+noahpy@users.noreply.github.com>2024-04-21 20:24:39 +0200
committerGitHub <noreply@github.com>2024-04-21 20:24:39 +0200
commit6fc80fa87f5fab1f204c4d7bb18c2e02e97c288f (patch)
tree721f4352615c91d68b3bd476d6ccd1988e94d2b2
parent48027e63d613f2a2397a39884b4fb3169a23fd13 (diff)
downloadbluetoothctl-dmenu-6fc80fa87f5fab1f204c4d7bb18c2e02e97c288f.tar.gz
bluetoothctl-dmenu-6fc80fa87f5fab1f204c4d7bb18c2e02e97c288f.zip
Apply suggestions from code review
Co-authored-by: Arne <78976058+4rneee@users.noreply.github.com>
-rwxr-xr-xbluetooth-devices.sh4
1 files 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