Installation
From AUR
yay -S dmenu-bluetooth
Manually
Install dependencies: dmenu and bluetoothctl (provided by bluez-utils
in Arch)
wget "https://raw.githubusercontent.com/Layerex/dmenu-bluetooth/master/dmenu-bluetooth"
install dmenu-bluetooth /usr/local/bin
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
[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