Polybar Modules bluetooth - ulises-jeremias/dotfiles GitHub Wiki

๐Ÿ“ถ Polybar Module: Rofi Bluetooth

The Rofi Bluetooth module is a custom implementation built on top of the internal/script module. It provides real-time display of your Bluetooth status and offers a clean Rofi-powered interface for managing devices.

[!TIP] This module integrates seamlessly with the dots rofi-bluetooth script and updates dynamically based on your Bluetooth state.


๐Ÿ”ง How It Works

The module executes:

dots rofi-bluetooth --status | cut -d " " -f 1

This prints the current Bluetooth state (e.g., ON or OFF) and updates as the state changes.


๐Ÿ“ฆ Features

  • Bluetooth Status: Displays whether Bluetooth is currently enabled or disabled
  • Live Updates: Automatically listens for state changes
  • Rofi UI: Launches a Rofi menu to enable/disable Bluetooth and manage paired devices

๐Ÿ–ฅ๏ธ Example Screenshot

Hereโ€™s how the Rofi Bluetooth UI looks in action:

Rofi Bluetooth

[!TIP] You can assign a click action in Polybar to trigger the Rofi UI using dots rofi-bluetooth.


โš™๏ธ Configuration Tips

This module uses type = custom/script in Polybar. Example snippet:

[module/rofi-bluetooth]
type = custom/script
exec = dots rofi-bluetooth --status | cut -d ' ' -f 1
click-left = dots rofi-bluetooth
interval = 5

Refer to the Polybar script module documentation for all available options.


โœ… Requirements

  • bluetoothctl or BlueZ installed and active
  • Rofi installed and configured
  • dots rofi-bluetooth script available in your path (included with this dotfiles setup)

Control your Bluetooth with style and speed โ€” all from your Polybar. ๐Ÿ”ต๐Ÿ“ก