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 Creates a thin wibox at a position relative to another wibox.
3 This allows to create "borders" for your wiboxes.
5 lain.widget.borderbox(relbox, s, args)
7 `relbox` and `s` (an integer being screen number) are required arguments, `args` is an optional table
10 Variable | Meaning | Type | Default
12 `position` | Position of the additional box | string | "above"
13 `color` | Color of the additional box | string | `#FFFFFF`
14 `size` | Size in pixels of the additional box | int | 1
16 Possible values for `.position`: `above`, `below`, `left` and `right`.
20 Think of this as a wibox:
22 [======================]
24 If `args.position = "above"`, then you'll get an additional wibox below
27 ________________________
28 [======================]
30 It'll match position and size of the existing wibox.
32 If your main wiboxes are stored in a table called `mywibox` (one wibox
33 for each screen) and are located at the bottom of your screen, then this
34 adds a borderbox on top of them:
37 for s = 1, screen.count() do
40 -- Most likely, you'll want to do this as well:
41 awful.screen.padding(screen[s], { bottom = 1 })
43 -- Create the box and place it above the existing box.
44 lain.widgets.borderbox(mywibox[s], s, { position = "above" } )