Merge pull request #1640 from psychon/add_to_wibox_lists

Add some non-helpful examples
This commit is contained in:
Emmanuel Lepage Vallée 2017-03-07 18:45:29 -05:00 committed by GitHub
commit 8f6e80f5c6
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--DOC_HIDE_ALL
local wibox = require("wibox")
local awful = { widget = { only_on_screen = require("awful.widget.only_on_screen") } }
return {
text = "Before",
align = "center",
valign = "center",
widget = wibox.widget.textbox,
},
{
{
text = "After",
align = "center",
valign = "center",
widget = wibox.widget.textbox,
},
screen = "primary",
widget = awful.widget.only_on_screen
}
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -0,0 +1,20 @@
--DOC_HIDE_ALL
local wibox = require("wibox")
return {
text = "Before",
align = "center",
valign = "center",
widget = wibox.widget.textbox,
},
{
{
text = "After",
align = "center",
valign = "center",
widget = wibox.widget.textbox,
},
widget = wibox.container.scroll.horizontal
}
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80