2019-08-19 07:31:53 +02:00
|
|
|
--DOC_GEN_IMAGE --DOC_NO_USAGE
|
|
|
|
|
|
|
|
screen[1]._resize {x = 0, width = 640, height = 480} --DOC_HIDE
|
|
|
|
|
|
|
|
local awful = {wibar = require("awful.wibar")} --DOC_HIDE
|
|
|
|
|
|
|
|
function awful.spawn(_, args) --DOC_HIDE
|
|
|
|
local c = client.gen_fake{} --DOC_HIDE
|
|
|
|
c:tags({args.tag}) --DOC_HIDE
|
|
|
|
assert(#c:tags() == 1) --DOC_HIDE
|
|
|
|
assert(c:tags()[1] == args.tag) --DOC_HIDE
|
|
|
|
end --DOC_HIDE
|
|
|
|
|
|
|
|
--[[ --DOC_HIDE
|
|
|
|
**Usage example:**
|
|
|
|
--]] --DOC_HIDE
|
|
|
|
|
|
|
|
--DOC_NEWLINE
|
|
|
|
|
|
|
|
-- With a padding, the tiled clients wont use 20px at the top and bottom
|
|
|
|
-- and 40px on the left and right.
|
|
|
|
screen[1].padding = {
|
|
|
|
left = 40,
|
|
|
|
right = 40,
|
|
|
|
top = 20,
|
|
|
|
bottom = 20,
|
|
|
|
}
|
|
|
|
|
2019-11-16 20:08:36 +01:00
|
|
|
local wibar = awful.wibar { --DOC_HIDE
|
2019-08-19 07:31:53 +02:00
|
|
|
position = "top", --DOC_HIDE
|
|
|
|
height = 24, --DOC_HIDE
|
|
|
|
} --DOC_HIDE
|
|
|
|
|
|
|
|
return { --DOC_HIDE
|
|
|
|
factor = 2 , --DOC_HIDE
|
|
|
|
show_boxes = false, --DOC_HIDE
|
2019-08-25 21:35:17 +02:00
|
|
|
highlight_padding_area = true , --DOC_HIDE
|
2019-11-16 20:08:36 +01:00
|
|
|
draw_wibar = wibar, --DOC_HIDE
|
2019-08-19 07:31:53 +02:00
|
|
|
} --DOC_HIDE
|