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:
[!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. ๐ต๐ก