A simple interactive tool to connect, pair, etc bluetooth devices via dmenu
Go to file
2020-06-09 18:57:47 +02:00
bt fix first action and last paired device being listed as one option 2020-06-09 18:57:47 +02:00
LICENSE Initial Project Version 2020-04-18 21:26:30 +02:00
Makefile renamed bthandler to bt, added hardcoded paired_devices file since "bluetoothctl paired-devices" seems unreliable 2020-06-07 20:56:01 +02:00
README.md added immediate scan start on menu launch, rescan now available in paring menu 2020-06-09 18:20:51 +02:00

bthandler

A simple interactive tool to:

  • connect to already paired devices
  • pair new ones
  • unpair already paired devices
  • turn bluetooth on/off
  • blacklist paired devices to not be listed in connection selection

all via dmenu. Should be easily extendable by editing the actions string.

cropped preview

Installation

Edit the Makefile to reflect your preffered installation destination. Then, simply

make install

Afterwards, invoking bt will start the menu.

Clear blacklist/pairlist

Since bluetoothctl paired-devices seems to be hugely unreliable in listing paired devices, bthandler has a seperate list for all devices paired through bthandler. There is also a blacklist available to not display certain devices, which might be useful for autoconnection Bluetooth mice for example.

Note: If for some reason bluetoothctl paired-devices works for you dont worry, bthandler lists all devices returned from bluetoothctl and it's own paired devices list. (Duplicates are not displayed.)

To clear these files, simply run

make clear

and these files will be reset to their inital, empty state.

Uninstall

To uninstall you might follow that it's a simple

make uninstall

Pending features

Here's a growing list of features that are not yet actively worked on but might be nice in the future. Currently I'm more concerned with reliability than fulfilling feature requests, but I'm still open to put some on this list.

  • start scanning for new devices immediately at execution to save time when pairing new devices -> Implemented (I think, seems to be working at least)
  • auto-trust newly paired devices/trust device via dmenu
  • blacklist devices via dmenu