awesome/tests/examples/screen/wibar_workarea.lua

36 lines
979 B
Lua
Raw Normal View History

2021-07-06 10:19:13 +02:00
--DOC_GEN_IMAGE
screen[1]._resize {x = 0, width = 640, height = 480} --DOC_HIDE
screen._add_screen {x = 820, width = 640, height = 480, y = -22} --DOC_HIDE
local awful = { --DOC_HIDE
wibar = require("awful.wibar"), --DOC_HIDE
tag = require("awful.tag"), --DOC_HIDE
tag_layout = require("awful.layout.suit.tile") --DOC_HIDE
} --DOC_HIDE
local screen1_wibar = awful.wibar {
position = "top",
restrict_workarea = true,
height = 24,
screen = screen[1],
2021-07-06 10:19:13 +02:00
}
--DOC_NEWLINE
local screen2_wibar = awful.wibar {
position = "top",
restrict_workarea = false,
height = 24,
screen = screen[2],
2021-07-06 10:19:13 +02:00
}
return { --DOC_HIDE
factor = 2 , --DOC_HIDE
show_boxes = true, --DOC_HIDE
draw_wibars = {screen1_wibar, screen2_wibar}, --DOC_HIDE
display_screen_info = false, --DOC_HIDE
draw_struts = true, --DOC_HIDE
} --DOC_HIDE