widgets: new guybrush has its battery as BAT0

This commit is contained in:
Vincent Bernat 2020-01-11 23:08:41 +01:00
parent c65804df94
commit c0e324ea73

View file

@ -94,7 +94,6 @@ cpuicon.image = image(beautiful.icons .. "/widgets/cpu.png")
local batwidget = { widget = "" } local batwidget = { widget = "" }
if awful.util.table.hasitem({"guybrush", "zoro"}, config.hostname) then if awful.util.table.hasitem({"guybrush", "zoro"}, config.hostname) then
local bat = "BAT0" local bat = "BAT0"
if config.hostname == "guybrush" then bat = "BAT1" end
batwidget.widget = widget({ type = "textbox" }) batwidget.widget = widget({ type = "textbox" })
vicious.register(batwidget.widget, vicious.widgets.bat, vicious.register(batwidget.widget, vicious.widgets.bat,
function (widget, args) function (widget, args)