diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2025-12-26 22:38:13 +0100 |
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2025-12-26 22:38:13 +0100 |
| commit | 0419303daa616d42ea222d002f1aea2f9ba7f26f (patch) | |
| tree | 51136027c95e8ac91639226433061c21ab5987fe | |
| parent | 638732931677b38042dda40846e6c7b13320c8ce (diff) | |
| download | desktop-tools-0419303daa616d42ea222d002f1aea2f9ba7f26f.tar.gz desktop-tools-0419303daa616d42ea222d002f1aea2f9ba7f26f.tar.xz desktop-tools-0419303daa616d42ea222d002f1aea2f9ba7f26f.zip | |
wmstatus: indicate charge readout failures
| -rw-r--r-- | wmstatus.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1265,6 +1265,8 @@ read_battery_status (int dir, char **type) int charge = read_battery_charge (dir); if (charge >= 0 && charge <= 100) str_append_printf (&s, "%u%%", charge); + else + str_append_printf (&s, "—"); char *status = NULL; char *model_name = read_value (dir, "model_name", NULL); |
