All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 [<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
3 Creates a thin wibox at a position relative to another wibox.
5 This allows to create "borders" for your wiboxes.
7 lain.widget.borderbox(relbox, s, args)
9 `relbox` and `s` (an integer being screen number) are required arguments, `args` is an optional table
12 Variable | Meaning | Type | Default
14 `position` | Position of the additional box | string | "above"
15 `color` | Color of the additional box | string | `#FFFFFF`
16 `size` | Size in pixels of the additional box | int | 1
18 Possible values for `.position`: `above`, `below`, `left` and `right`.
22 Think of this as a wibox:
24 [======================]
26 If `args.position = "above"`, then you'll get an additional wibox below
29 ________________________
30 [======================]
32 It'll match position and size of the existing wibox.
34 If your main wiboxes are stored in a table called `mywibox` (one wibox
35 for each screen) and are located at the bottom of your screen, then this
36 adds a borderbox on top of them:
39 for s = 1, screen.count() do
42 -- Most likely, you'll want to do this as well:
43 awful.screen.padding(screen[s], "bottom")
45 -- Create the box and place it above the existing box.
46 lain.widgets.borderbox(mywibox[s], s, { position = "above" } )