Skip to content

🔷 A script that generates a rofi menu that uses bluetoothctl to connect to bluetooth devices and display status info.

License

Notifications You must be signed in to change notification settings

nickclyde/rofi-bluetooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

🔷 A script that generates a rofi menu that uses bluetoothctl to connect to bluetooth devices and display status info.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 11

Languages