From ec8a5bd926bea00831bf584c6630b2efe4f21804 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Thu, 13 Apr 2023 09:23:03 +0200 Subject: [PATCH] fixed color when charged --- i3/i3status/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/i3status/index.js b/i3/i3status/index.js index 25c422a..092be43 100644 --- a/i3/i3status/index.js +++ b/i3/i3status/index.js @@ -145,7 +145,7 @@ const getBattery = async () => { const battery = Number(rawBattery.trim()) || 0; const status = rawStatus.trim(); const icon = status === "Discharging" ? "" : ""; - const color = getHexadecimalColorBetween(red, green, battery / 100); + const color = status === "Discharging" ? getHexadecimalColorBetween(red, green, battery / 100) : "#00FF00"; return { color,