yambar/CHANGELOG.md
Daniel Eklöf aadb1b22b3
module/battery: don’t terminate when failing to update
Some battery drivers will remove their sysfs directory when the
battery goes from charging to discharging, or vice verse.

This caused yambar’s battery module to terminate, resulting in the
last known battery state to “freeze”.

With this patch, failure to read the battery directory the *first*
time is still considered a hard failure, resulting in an error message
and then termination.

However, subsequent failures, i.e. while polling the battery state,
is *not* considered fatal; we simply don’t update the bar, and retry
again the next poll interval. Error messages are still logged however.

Closes #44
2021-06-12 21:43:57 +02:00

3.3 KiB
Raw Blame History

Changelog

Unreleased

Added

  • Text shaping support.

Changed

Deprecated

Removed

Fixed

Security

Contributors

1.6.1

Changed

Fixed

  • mpd: elapsed tag not working (regression, introduced in 1.6.0).
  • Wrong background color for (semi-) transparent backgrounds.
  • battery: stats sometimes getting stuck at 0, or impossibly large values (https://codeberg.org/dnkl/yambar/issues/25).

1.6.0

Added

Fixed

Contributors

1.5.0

Added

  • battery: support for drivers that use charge_* (instead of energy_*) sys files.
  • removables: SD card support.
  • removables: new ignore property.
  • Wayland: multi-seat support.
  • Experimental: 'river': new module for the river Wayland compositor.

Changed

  • Requires fcft-2.2.x.
  • battery: a poll value of 0 disables polling.

Fixed

  • mpd: check of return value from thrd_create.
  • battery: handle 'manufacturer' and 'model_name' not being present.
  • Wayland: handle runtime scaling changes.