fix battery issue
This commit is contained in:
parent
42a3bd7b81
commit
05bbc65966
@ -159,7 +159,7 @@ sysmon.buttons.ram = awful.util.table.join(
|
|||||||
)
|
)
|
||||||
-- battery
|
-- battery
|
||||||
local batstate=redflat.system.battery("BAT0")
|
local batstate=redflat.system.battery("BAT0")
|
||||||
if batstate.value ~= nil then
|
if batstate[3] ~= "N/A" then
|
||||||
sysmon.widget.battery = redflat.widget.sysmon(
|
sysmon.widget.battery = redflat.widget.sysmon(
|
||||||
{ func = redflat.system.pformatted.bat(25), arg = "BAT0" },
|
{ func = redflat.system.pformatted.bat(25), arg = "BAT0" },
|
||||||
{ timeout = 60, widget = redflat.gauge.icon.single, monitor = { is_vertical = true, icon = sysmon.icon.battery } }
|
{ 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,
|
spr_right,
|
||||||
env.wrapper(sysmon.widget.battery, "battery"),
|
env.wrapper(sysmon.widget.battery, "battery"),
|
||||||
spr_right,
|
spr_right,
|
||||||
baticon,
|
|
||||||
bat,
|
|
||||||
env.wrapper(volume.widget, "volume", volume.buttons),
|
env.wrapper(volume.widget, "volume", volume.buttons),
|
||||||
spr_right,
|
spr_right,
|
||||||
env.wrapper(textclock.widget, "textclock"),
|
env.wrapper(textclock.widget, "textclock"),
|
||||||
|
Loading…
Reference in New Issue
Block a user