Install from AUR (rofi-bluetooth-git), or:
- Install dependencies: rofi, bluetoothctl (provided by
bluez-utils
in Arch) and bc git clone [email protected]:ClydeDroid/rofi-bluetooth.git
cd rofi-bluetooth
./rofi-bluetooth
- (Optional) For easy access, add the script somewhere in your
$PATH
.
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 = rofi-bluetooth --status
interval = 1
click-left = rofi-bluetooth &
"bluetooth": {
// "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
"format": " {status}",
"format-disabled": "", // an empty format will hide the module
"format-connected": " {num_connections} connected",
"tooltip-format": "{controller_alias}\t{controller_address}",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"on-click": "rofi-bluetooth"
},
bindsym $mod+b exec --no-startup-id rofi-bluetooth
bind = $mainMod, B, exec, rofi-bluetooth