https://github.com/layerex/dmenu-bluetooth
🔷 A script that generates a dmenu (or other) menu that uses bluetoothctl to connect to bluetooth devices and display status info.
https://github.com/layerex/dmenu-bluetooth
bluetooth dmenu
Last synced: about 1 year ago
JSON representation
🔷 A script that generates a dmenu (or other) menu that uses bluetoothctl to connect to bluetooth devices and display status info.
- Host: GitHub
- URL: https://github.com/layerex/dmenu-bluetooth
- Owner: Layerex
- License: gpl-3.0
- Created: 2020-06-10T16:27:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-15T19:42:33.000Z (almost 3 years ago)
- Last Synced: 2025-05-05T22:14:10.100Z (about 1 year ago)
- Topics: bluetooth, dmenu
- Language: Shell
- Homepage:
- Size: 50.8 KB
- Stars: 49
- Watchers: 0
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dmenu-bluetooth
`bluetoothctl` `rofi` `dmenu`
## Installation
### From AUR
``` sh
yay -S dmenu-bluetooth
```
### Manually
Install dependencies: dmenu and bluetoothctl (provided by `bluez-utils` in Arch)
``` sh
wget "https://raw.githubusercontent.com/Layerex/dmenu-bluetooth/master/dmenu-bluetooth"
install dmenu-bluetooth /usr/local/bin
```
## Usage
```
usage: dmenu-bluetooth [--help] [--status] [--connected-icon [ICON]] [PROMPT] DMENU_ARGS...
A script that generates a dmenu menu that uses bluetoothctl to connect to bluetooth devices and display status info.
positional arguments:
PROMPT dmenu prompt
DMENU_ARGS... arguments passed to dmenu
options:
--help show this help message and exit
--status print a short string about current bluetooth status and exit
--connected-icon [ICON] add icon on device list next to connected devices
environment variables:
DMENU_BLUETOOTH_PROMPT dmenu prompt
DMENU_BLUETOOTH_LAUNCHER command to use instead of 'dmenu'
Positional arguments have to be placed after all other arguments.
A PROMPT positional argument will be interpreted as part of DMENU_ARGS if it starts with '-'. It won't be parsed if the DMENU_BLUETOOTH_PROMPT environment variable is set.
Use the DMENU_BLUETOOTH_LAUNCHER environment variable to use launchers other than dmenu. Rofi, fuzzel, and any dmenu-compatible launchers are supported.
```
### Polybar configuration
`NOTE:` In order to properly display the bluetooth icon, you will need to use an iconic font in your bar, e.g. [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts)
```
[module/bluetooth]
type = custom/script
exec = dmenu-bluetooth --status
interval = 1
click-left = dmenu-bluetooth &
```
### i3 keybinding
```
bindsym $mod+b exec --no-startup-id dmenu-bluetooth
```
### Thanks for the inspiration!
- [firecat53/networkmanager-dmenu](https://github.com/firecat53/networkmanager-dmenu)
- [x70b1's bluetoothctl polybar script](https://github.com/polybar/polybar-scripts/tree/master/polybar-scripts/system-bluetooth-bluetoothctl)