From f65bba3afa40eadac3a57cdd40bbaad0b511b3eb Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 17 Jul 2023 10:14:29 -0500 Subject: [PATCH] fix: remove invalid battery symbols --- dots/.config/wezterm/config/tabbar.lua | 22 +++++++++++++--------- dots/.config/zsh/config/themes/config.zsh | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/dots/.config/wezterm/config/tabbar.lua b/dots/.config/wezterm/config/tabbar.lua index 46cf7fc1..88d76229 100644 --- a/dots/.config/wezterm/config/tabbar.lua +++ b/dots/.config/wezterm/config/tabbar.lua @@ -87,24 +87,28 @@ wezterm.on("update-status", function(window, pane) local battery = "" for _, b in ipairs(wezterm.battery_info()) do local charge_percent = b.state_of_charge * 100 - local battery_icon = "" + local battery_icon = "󰁹" if charge_percent < 100 then - battery_icon = "" + battery_icon = "󰁹" + elseif charge_percent < 90 then + battery_icon = "󰂂" + elseif charge_percent < 80 then + battery_icon = "󰂁" elseif charge_percent < 70 then - battery_icon = "" + battery_icon = "󰂀" elseif charge_percent < 60 then - battery_icon = "" + battery_icon = "󰁿" elseif charge_percent < 50 then - battery_icon = "" + battery_icon = "󰁾" elseif charge_percent < 40 then - battery_icon = "" + battery_icon = "󰁽" elseif charge_percent < 30 then - battery_icon = "" + battery_icon = "󰁼" elseif charge_percent < 20 then - battery_icon = "" + battery_icon = "󰁻" elseif charge_percent < 10 then - battery_icon = "" + battery_icon = "󰁺" end battery = battery_icon .. " " .. string.format("%.0f%%", charge_percent) diff --git a/dots/.config/zsh/config/themes/config.zsh b/dots/.config/zsh/config/themes/config.zsh index ad2119c1..0c74bcf8 100644 --- a/dots/.config/zsh/config/themes/config.zsh +++ b/dots/.config/zsh/config/themes/config.zsh @@ -111,7 +111,7 @@ newline # ip # ip address and bandwidth usage for a specified network interface # proxy # system-wide http/https/ftp proxy - battery # internal battery + # battery # internal battery # wifi # wifi speed # example # example user-defined segment (see prompt_example function below) )