From 05bbc65966e25855c2dbc1eff064bda0f0a0b8fe Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 20 Oct 2019 20:16:21 +0200 Subject: [PATCH] fix battery issue --- awesome/.config/awesome/rc.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index b6c3823..8a52593 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -159,7 +159,7 @@ sysmon.buttons.ram = awful.util.table.join( ) -- battery local batstate=redflat.system.battery("BAT0") -if batstate.value ~= nil then +if batstate[3] ~= "N/A" then sysmon.widget.battery = redflat.widget.sysmon( { func = redflat.system.pformatted.bat(25), arg = "BAT0" }, { timeout = 60, widget = redflat.gauge.icon.single, monitor = { is_vertical = true, icon = sysmon.icon.battery } } @@ -279,8 +279,6 @@ awful.screen.connect_for_each_screen(function(s) spr_right, env.wrapper(sysmon.widget.battery, "battery"), spr_right, - baticon, - bat, env.wrapper(volume.widget, "volume", volume.buttons), spr_right, env.wrapper(textclock.widget, "textclock"),