Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.9 KB

File metadata and controls

61 lines (45 loc) · 1.9 KB

rofi-bluetooth

bluetoothctl rofi dmenu

Installation

Install from AUR (rofi-bluetooth-git), or:

  1. Install dependencies: rofi, bluetoothctl (provided by bluez-utils in Arch) and bc
  2. git clone git@github.com:ClydeDroid/rofi-bluetooth.git
  3. cd rofi-bluetooth
  4. ./rofi-bluetooth
  5. (Optional) For easy access, add the script somewhere in your $PATH.

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 = rofi-bluetooth --status
interval = 1
click-left = rofi-bluetooth &

Waybar configuration

"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"
},

i3 keybinding

bindsym $mod+b exec --no-startup-id rofi-bluetooth

Hyprland keybinding

bind = $mainMod, B, exec, rofi-bluetooth

Thanks for the inspiration!