Waybar
Waybar copied to clipboard
"show-icon" option on upower module not working
Heya!
I'm currently trying to display the battery level of my Bluetooth headset in my bar. For this, I'm using the upower module.
For some reason, the "show-icon" option of this module does nothing. Setting it to false does not remove the battery icon.
"upower#headset": {
"native-path": "/org/bluez/hci0/dev_AC_BF_71_88_D4_6C",
"tooltip": false,
"format": " {percentage}",
"show-icon": false
}
(The unrecognized symbol in the format is a FontAwesome glyph I wanna use instead of the default icon)
Using waybar 0.9.24 on hyprland 0.34.0-1 on arch
"bluetooth": {
"format": "",
"format-disabled": "",
"format-connected": " {num_connections}",
"format-connected-battery": " {device_alias} // {device_battery_percentage}%",
"format-device-preference": [ "device2", "device1" ], // preference list deciding the displayed device
"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} // {device_battery_percentage}%"
},
@mahaveergurjar thanks for the alternative, works great!
However, doesn't change anything about the upower module not behaving ^^
I don't try the upower so I don't know what issue in upower show icon
I think you can try this alternative for show icon false
"hide-if-empty": true,
https://github.com/Alexays/Waybar/pull/1484#issuecomment-1076689599
The PR to add show-icon
is only in master and not in 0.9.24.