2018-07-24 14:12:44 +02:00
|
|
|
--DOC_GEN_IMAGE --DOC_HIDE
|
2016-03-28 08:02:27 +02:00
|
|
|
screen[1]._resize {width = 128, height = 96} --DOC_HIDE
|
|
|
|
screen._add_screen {x = 140, y = 0, width = 128, height = 96} --DOC_HIDE
|
|
|
|
screen._add_screen {x = 280, y = 0, width = 128, height = 96} --DOC_HIDE
|
2021-12-18 21:05:00 +01:00
|
|
|
|
|
|
|
for s in screen do --DOC_HIDE
|
|
|
|
require("awful.tag").add("1", {screen=s, selected=true}) --DOC_HIDE
|
|
|
|
end --DOC_HIDE
|
|
|
|
|
2016-03-28 08:02:27 +02:00
|
|
|
local placement = require("awful.placement") --DOC_HIDE
|
|
|
|
|
|
|
|
for k, pos in ipairs{ --DOC_HIDE
|
2016-12-27 21:39:08 +01:00
|
|
|
"", "vertical", "horizontal" --DOC_HIDE
|
|
|
|
} do --DOC_HIDE
|
|
|
|
local c1 = client.gen_fake {--DOC_HIDE
|
|
|
|
x = screen[k].geometry.x+40, --DOC_HIDE
|
|
|
|
y = screen[k].geometry.y+40, width=75, height=50, screen=screen[k]} --DOC_HIDE
|
2020-03-22 01:26:58 +01:00
|
|
|
c1:_hide_all() --DOC_HIDE
|
2016-03-28 08:02:27 +02:00
|
|
|
placement.maximize(c1, {axis = pos ~= "" and pos or nil}) --DOC_HIDE
|
|
|
|
|
|
|
|
if k == 1 then --DOC_HIDE
|
|
|
|
assert(c1.width+2*c1.border_width == screen[1].geometry.width and --DOC_HIDE
|
2016-12-27 21:39:08 +01:00
|
|
|
c1.height+2*c1.border_width == screen[1].geometry.height) --DOC_HIDE
|
2016-03-28 08:02:27 +02:00
|
|
|
end --DOC_HIDE
|
|
|
|
end --DOC_HIDE
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|