yambar/modules
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
..
alsa.c module/alsa+backlight: round() percentage values 2020-09-24 13:57:05 +02:00
backlight.c module/alsa+backlight: round() percentage values 2020-09-24 13:57:05 +02:00
battery.c module/battery: don’t terminate when failing to update 2021-06-12 21:43:57 +02:00
clock.c module/clock: silence compiler warning: ensure timeout_ms is initialized 2020-09-24 17:47:20 +02:00
i3-common.c module/i3-common: fix compilation warning with asan 2020-07-07 14:06:29 +02:00
i3-common.h modules/sway-xkb: new module, uses sway 'input' events to expose kbd layout 2019-08-14 21:51:43 +02:00
i3-ipc.h module/i3: use our own copy of i3/ipc.h 2019-03-31 12:08:44 +02:00
i3.c module/i3: separate numerical workspace names from non-numerical 2021-01-04 20:16:30 +01:00
label.c modules: move 'content' and 'anchors' to MODULE_COMMON_ATTRS 2020-01-24 21:08:39 +01:00
meson.build module/sway-xkb: fix name of .so file, fixes load failures when built as shared module 2020-11-25 20:41:09 +01:00
mpd.c module/mpd: increase tag count in tag set 2021-01-04 20:01:46 +01:00
network.c modules: move 'content' and 'anchors' to MODULE_COMMON_ATTRS 2020-01-24 21:08:39 +01:00
removables.c module/removable: 'ignore' is now applied to partitions too 2020-06-21 10:24:52 +02:00
river.c module/river: exclude seats while river is starting up 2020-11-25 20:41:09 +01:00
script.c module/script: fix typo in memcmp() 2021-02-10 16:15:49 +01:00
sway-xkb.c module/sway-xkb: ignore non-keyboards in input event handler 2021-06-01 17:40:59 +02:00
xkb.c modules: move 'content' and 'anchors' to MODULE_COMMON_ATTRS 2020-01-24 21:08:39 +01:00
xwindow.c modules: move 'content' and 'anchors' to MODULE_COMMON_ATTRS 2020-01-24 21:08:39 +01:00