【发布时间】:2017-11-05 01:24:18
【问题描述】:
在我之前很棒的安装(很棒的 3.5)中,我写了the configurations,它在版本 4 中不再以相同的方式工作。我会像这样在水平对齐中对齐容器:
local center_layout = wibox.layout.fixed.horizontal()
local left_layout = wibox.layout.fixed.horizontal()
local right_layout = wibox.layout.fixed.horizontal()
-- Fill layouts with widgets
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_right(right_layout)
layout:set_middle(center_layout)
但是 center_layout 是靠左对齐而不是像这样居中:
我也试过用
替换上面的代码local layout = wibox.widget {
left_layout ,
center_layout ,
right_layout ,
layout = wibox.layout.align.horizontal
}
但它并没有做任何改变
【问题讨论】:
标签: user-interface lua scripting window-managers awesome-wm