remove second battery widget. TODO: make configurable
This commit is contained in:
parent
a2f0c02920
commit
d84c71096b
|
@ -193,10 +193,9 @@ end
|
|||
-- battery
|
||||
function widgets.battery(s)
|
||||
bat1 = bar_with_overlay(beautiful.fg_focus, beautiful.bg_focus, 100, math.floor(s.dpi / 10))
|
||||
bat2 = bar_with_overlay(beautiful.fg_focus, beautiful.bg_focus, 100, math.floor(s.dpi / 10))
|
||||
|
||||
combined_bats = graph_label(
|
||||
{ bat1,bat2,layout = wibox.layout.fixed.vertical },
|
||||
bat1,
|
||||
"BAT"
|
||||
)
|
||||
|
||||
|
@ -220,8 +219,6 @@ function widgets.battery(s)
|
|||
|
||||
vicious.register(bat1[1], vicious.widgets.bat, callback, 61, "BAT0")
|
||||
table.insert(wlist, bat1[1])
|
||||
vicious.register(bat2[1], vicious.widgets.bat, callback, 61, "BAT1")
|
||||
table.insert(wlist, bat2[1])
|
||||
|
||||
return combined_bats
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue