awesome/tests/examples/awful/widget/layoutlist/default.lua

21 lines
826 B
Lua
Raw Normal View History

2018-01-13 09:33:27 +01:00
local awful = { --DOC_HIDE --DOC_GEN_IMAGE --DOC_NO_USAGE
popup = require("awful.popup"), --DOC_HIDE
placement = require("awful.placement"), --DOC_HIDE
widget = {layoutlist = require("awful.widget.layoutlist")}, --DOC_HIDE
layout = require("awful.layout") --DOC_HIDE
} --DOC_HIDE
local wibox = require("wibox") --DOC_HIDE
awful.popup {
widget = awful.widget.layoutlist {
source = awful.widget.layoutlist.source.default_layouts, --DOC_HIDE
screen = 1,
base_layout = wibox.layout.flex.vertical
},
maximum_height = #awful.layout.layouts * 24,
minimum_height = #awful.layout.layouts * 24,
placement = awful.placement.centered,
}
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80