Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

"show-icon" option on upower module not working

Open xenorio opened this issue 1 year ago • 4 comments

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.

image

"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

xenorio avatar Jan 22 '24 11:01 xenorio

    "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}%"
    },

240122_11h04m20s_screenshot

240122_10h49m24s_screenshot

mahaveergurjar avatar Jan 23 '24 02:01 mahaveergurjar

@mahaveergurjar thanks for the alternative, works great!

However, doesn't change anything about the upower module not behaving ^^

xenorio avatar Jan 23 '24 09:01 xenorio

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

mahaveergurjar avatar Jan 23 '24 14:01 mahaveergurjar

The PR to add show-icon is only in master and not in 0.9.24.

VAWVAW avatar Feb 09 '24 08:02 VAWVAW