feat(waybar): add new module: bluetooth

This commit is contained in:
Sergio Laín 2024-08-31 00:57:21 +02:00
parent ce6f76d319
commit b2c17e6956
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{
"bluetooth": {
"format": "",
"format-disabled": "",
"format-connected": " {num_connections}",
"format-connected-battery": "{icon} {num_connections}",
"format-icons": ["󰥇", "󰤾", "󰤿", "󰥀", "󰥁", "󰥂", "󰥃", "󰥄", "󰥅", "󰥆", "󰥈"],
"tooltip-format": "{controller_alias}\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}",
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{icon} {device_battery_percentage}%",
},
}

View file

@ -43,6 +43,7 @@
#custom-fans, #custom-fans,
#clock, #clock,
#idle_inhibitor, #idle_inhibitor,
#bluetooth,
#custom-wf-recorder, #custom-wf-recorder,
#pulseaudio, #pulseaudio,
#backlight, #backlight,
@ -224,6 +225,10 @@ window#waybar.hidden {
color: @peach; color: @peach;
} }
#bluetooth {
color: @blue;
}
#window { #window {
background: linear-gradient( background: linear-gradient(
52deg, 52deg,