Я использую следующие настройки для верхней панели:
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
-- Create a taglist widget
s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, taglist_buttons)
-- Create a tasklist widget
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
-- Create the wibox
s.mywibox = awful.wibar({ position = theme.position, screen = s, height = theme.height })
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{
-- Left widgets
layout = wibox.layout.fixed.horizontal,
s.mytaglist,
s.mypromptbox,
},
s.mytasklist, -- Middle widget
{
-- Right widgets
layout = wibox.layout.fixed.horizontal,
theme.systray,
theme.spr_left,
theme.volume,
theme.battery,
theme.clock,
theme.spr_right
},
}
Я отключил названия задач. Чего я хочу добиться, так это отображения значков списка задач в центре. Как я могу это сделать, сохраняя при этом теги слева и системный трей справа?
Изменить
При применении expand = external я получаю следующее:
Изменить2
Когда я добавляю эти настройки контейнера:
-- Tasklist container
local tl = wibox.container.background(s.mytasklist, theme.bg_normal, gears.shape.rectangle)
local pl = wibox.container.margin(tl, 2, 2, 3, 3)
local tasklist = wibox.container.place(pl, {halign="center"})
Я получил:
Что немного лучше, но все еще не полностью по центру.
expand = "outside"
послеlayout = wibox.layout.align.horizontal
делает то, что вы хотите? - person Uli Schlachter   schedule 17.12.2017