From 2a99a49807e31867e3b80d05510bc51fb0c7cee1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 30 Jan 2017 16:17:45 +1300 Subject: [PATCH] better battery indication --- .config/awesome/rc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 478f3f7..57e70c7 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -128,7 +128,8 @@ local lain_bat = lain.widgets.bat({ batteries = {"BAT0", "BAT1"}, settings = function() local delim = "↓" - if bat_now.status == "Charging" then delim = "↑" end + if bat_now.status == "Charging" then delim = "↑" + elseif bat_now.status == "Unknown" then delim = "٭" end widget:set_text(bat_now.perc .. "% " .. delim .. " " .. bat_now.time) end, }) -- 2.39.2