Skip to content

🔷 A script that generates a dmenu (or other) menu that uses bluetoothctl to connect to bluetooth devices and display status info.

License

Notifications You must be signed in to change notification settings

DusanLesan/dmenu-bluetooth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

Fork Changes Compared to Layerex Version

  • 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.

dmenu-bluetooth

bluetoothctl rofi dmenu

Installation

Manually

Install dependencies: dmenu and bluetoothctl (provided by bluez-utils in Arch)

Usage

  • 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

NOTE: In order to properly display the bluetooth icon, you will need to use an iconic font in your bar, e.g. Nerd Fonts. You can even use nerd fonts as a device alias for more compact status output.

Thanks for the inspiration!

About

🔷 A script that generates a dmenu (or other) menu that uses bluetoothctl to connect to bluetooth devices and display status info.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 100.0%