312 current 2025-02-09 03:05:47 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
15
home/scripts/bluetooth/gb.sh
Normal file
15
home/scripts/bluetooth/gb.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $(bluetoothctl devices) == "No default controller available" ]]; then
|
||||
echo "click the bluetooth button lol"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# if we are not connected to gb, try to connect
|
||||
if bluetoothctl info | grep -q "Missing device address argument"; then
|
||||
bluetoothctl connect F8:8F:07:E1:FA:A7 > /dev/null
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "already connected to:"
|
||||
bluetoothctl info | grep "Name" | cut -d ' ' -f 2-
|
||||
Reference in New Issue
Block a user