diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2025-11-27 17:35:42 -0500 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2025-11-27 17:35:42 -0500 |
| commit | 77b295b8b0f9b73ecbda809e7843812c5f4c3737 (patch) | |
| tree | bd4dffb07ab4a55e40bd6d6a06e3d0e27dede598 /bin/statusline | |
| parent | b83a4973d6979c6c05d2a0af2c806d786f346545 (diff) | |
update
Diffstat (limited to 'bin/statusline')
| -rwxr-xr-x | bin/statusline | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/statusline b/bin/statusline index 948e8cb..b442b91 100755 --- a/bin/statusline +++ b/bin/statusline @@ -50,8 +50,8 @@ function battery() f:close() local symbol = 'ERROR' - local i = capacity > 0 and (capacity - 1) // 10 or 0 - if status == 'Discharging\n' then + local i = capacity > 0 and (capacity - 1) // 10 + 1 or 1 + if status == 'Discharging\n' or status == 'Not charging\n' then symbol = ({"", "", "", "", "", "", "", "", "", ""})[i] -- elseif status == 'Charging\n' then symbol = ({"", "", "", "", "", "", "", "", "", ""})[i] |
