From: martin f. krafft Date: Mon, 30 Jan 2017 03:17:45 +0000 (+1300) Subject: better battery indication X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/2a99a49807e31867e3b80d05510bc51fb0c7cee1 better battery indication --- 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, })