X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/046b0279b0f3eb827bcc2b2e395e6ea69c019733..f5eac3a48ed6de9b1fd6d58f97465a6a31654566:/widgets/borderbox.lua?ds=sidebyside diff --git a/widgets/borderbox.lua b/widgets/borderbox.lua index 150c1c3..c251ea8 100644 --- a/widgets/borderbox.lua +++ b/widgets/borderbox.lua @@ -15,7 +15,7 @@ local setmetatable = setmetatable local borderbox = {} local function worker(relbox, s, args) - local where = args.position or 'above' + local where = args.position or 'top' local color = args.color or '#FFFFFF' local size = args.size or 1 local box = nil @@ -24,14 +24,14 @@ local function worker(relbox, s, args) bg = color } - if where == 'above' + if where == 'top' then wiboxarg.width = relbox.width wiboxarg.height = size box = wibox(wiboxarg) box.x = relbox.x box.y = relbox.y - size - elseif where == 'below' + elseif where == 'bottom' then wiboxarg.width = relbox.width wiboxarg.height = size