X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/7a4d6f5ffa594603ef83bc8b0e9945d12e082490..9f8eb5d0a2fa32b81df9bd70cd0761773955b724:/widgets/borderbox.lua?ds=inline diff --git a/widgets/borderbox.lua b/widgets/borderbox.lua index 150c1c3..cce8517 100644 --- a/widgets/borderbox.lua +++ b/widgets/borderbox.lua @@ -8,6 +8,7 @@ --]] local wibox = require("awful.wibox") + local setmetatable = setmetatable -- Creates a thin wibox at a position relative to another wibox @@ -15,7 +16,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 +25,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