A fully functional bluetooth module for polybar that adds an icon that changes dinamically accordingly to the bluetooth status.
When the bluetooth is connected to a device
- Font Awesome 5 Free
- Systemd
- Blueberry
Place the shell script files in your preferred sctipt directory.
Add the module to your polybar config file
[module/bluetooth]
type = custom/script
exec = path/to/scripts/bluetooth.sh
interval = 2
click-left = exec blueberry
click-right = exec path/to/scripts/config/polybar/toggle_bluetooth.sh
format-padding = 1
format-background = #000000
format-foreground = #ffffff
Left click on the bluetooth icon launches blueberry or the bluetooth configuration tool of your choice.
Right click on the bluetooth icon toggles the bluetooth power status.