Skip to content

Commit

Permalink
bt
Browse files Browse the repository at this point in the history
  • Loading branch information
bhipple committed Feb 22, 2025
1 parent 8a3b8b7 commit f0ecdac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions bin/bt-connect
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
#!/usr/bin/env bash
notify-send "Connecting to bluetooth ..."

sony="38:18:4C:7D:CA:CB"
jabra="30:50:75:15:DF:4E"
jabra2="30:50:75:15:DE:39"
sonym3="38:18:4C:7D:CA:CB"
sonym5="80:99:E7:5C:8E:85"

for _ in {1..10}; do
if pacmd list-sinks | grep -q bluez; then
notify-send "Successfully connected to headset!"
break
fi
echo "Trying to connect to headset ..."
echo -e "connect $sony" | sudo bluetoothctl
echo -e "connect $jabra" | sudo bluetoothctl
echo -e "connect $jabra2" | sudo bluetoothctl
echo -e "connect $sony5" | sudo bluetoothctl
echo -e "connect $sony3" | sudo bluetoothctl
sleep 2
done

Expand Down
2 changes: 1 addition & 1 deletion nur-packages
Submodule nur-packages updated 1 files
+1 −1 pkgs/talon/talon

0 comments on commit f0ecdac

Please sign in to comment.