From 74ce13c5a0b1195ccb5aba06977f085c13265cb4 Mon Sep 17 00:00:00 2001 From: Martin Gabelmann Date: Thu, 2 Mar 2017 19:08:46 +0100 Subject: [PATCH] multicolor: dont override bat_now.perc, fixes #165 --- themes/multicolor/theme.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/multicolor/theme.lua b/themes/multicolor/theme.lua index ae63b71..06dc38f 100644 --- a/themes/multicolor/theme.lua +++ b/themes/multicolor/theme.lua @@ -175,14 +175,14 @@ local temp = lain.widget.temp({ local baticon = wibox.widget.imagebox(theme.widget_batt) local bat = lain.widget.bat({ settings = function() - if bat_now.perc ~= "N/A" then - bat_now.perc = bat_now.perc .. "%" + bat_p = bat_now.perc + if bat_p ~= "N/A" then + bat_p = bat_p .. "%" end if bat_now.ac_status == 1 then - bat_now.perc = bat_now.perc .. " plug" + bat_p = bat_p .. " plug" end - - widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, bat_now.perc .. " ")) + widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, bat_p .. " ")) end })