i3status-rust
i3status-rust copied to clipboard
v0.30: battery block regression when device is missing (UPower)
When device is not available the block errors, but it should just be hidden since hide_missing = true:

[[block]]
block = "battery"
driver = "upower"
device = "battery_ps_controller_battery_d0obcoc1oe6o57o5c"
format = "PS5: $percentage|PS5: N/A"
full_format = "PS5: $percentage"
hide_missing = true
[block.theme_overrides]
alternating_tint_bg = "#FFFFFFFF"
alternating_tint_fg = "#FFFFFFFF"
# TODO: change to confirm menu
[[block.click]]
button = "left"
cmd = "allow_only_one_instance sway_setup_tv_gaming"
Yes, missing battery detection is not implemented for driver = "upower".
Ah yes, one of the remaining features not yet implemented: https://github.com/greshake/i3status-rust/pull/1383 https://github.com/greshake/i3status-rust/pull/1378
@bim9262 Since you seem to be on v0.30 now, have you been hit by this again?
I don't use upower on a machine with removable battery so I haven't noticed.
Ah OK, I thought that you did since you were the one who implemented https://github.com/greshake/i3status-rust/pull/1378