From 77b295b8b0f9b73ecbda809e7843812c5f4c3737 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Thu, 27 Nov 2025 17:35:42 -0500 Subject: update --- bin/statusline | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/statusline') 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] -- cgit v1.2.3