- Rewritten for easier use as a status bar element for dwmblocks-async or similar programs.
- Fixed and made the status functionality default.
- Status now displays device battery state in addition to the alias.
- Input arguments are replaced with the environment variable
BLOCK_BUTTON
to control the script. - Code is greatly simplified while maintaining similar functionality.
- Some effort was put into optimizing the script by reducing unnecessary calls to
bluetoothctl
.
Install dependencies: dmenu and bluetoothctl (provided by bluez-utils
in Arch)
- Run
dmenu-bluetooth
without anything else to get device status (bluetooth icon + alias and battery percent for each connected device) - Run
BLOCK_BUTTON=1 dmenu-bluetooth
to be prompted with the menu - Edit
prompt
function to change display options or the whole menu program