Files
dotfiles/Scripts/.local/scripts/bt_connect
Aryadev Chavali d239dc5ffe bt_connect now accepts an argument to pass to bluetoothctl
Allows to me to setup bindings for disconnecting or connecting a
bluetooth device.
2026-01-24 00:44:05 +00:00

8 lines
196 B
Bash
Executable File

#!/usr/bin/env sh
choice=$(bluetoothctl devices | sed 's/Device \([A-Z0-9:]*\) \(.*\)/\2\t\1/g' | dmenu -i -p "Device: " | sed 's/.*\t//')
if [ ! -z $choice ]
then
bluetoothctl $1 $choice
fi