mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 11:12:31 +00:00
Merge pull request #201 from ngoonee/patch-1
Vertex: Properly center using expand = "none"
This commit is contained in:
commit
a7d9f901e1
|
@ -426,23 +426,24 @@ function theme.at_screen_connect(s)
|
|||
-- Create the wibox
|
||||
s.mywibox = awful.wibar({ position = "top", screen = s, height = 25, bg = gears.color.create_png_pattern(theme.panelbg) })
|
||||
|
||||
local wiboxlayout = wibox.layout.align.horizontal()
|
||||
wiboxlayout.expand = "none"
|
||||
-- Add widgets to the wibox
|
||||
s.mywibox:setup {
|
||||
layout = wibox.layout.align.horizontal,
|
||||
layout = wiboxlayout,
|
||||
{ -- Left widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
s.mypromptbox,
|
||||
tspace1,
|
||||
wibox.container.constraint(s.mytasklist, "exact", s.workarea.width/2.6),
|
||||
s.mytasklist,
|
||||
},
|
||||
{ -- Middle widgets
|
||||
layout = wibox.layout.flex.horizontal,
|
||||
space,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
mytextclock,
|
||||
},
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
wibox.container.constraint(wibox.widget { nil, nil, theme.mpd.widget, layout = wibox.layout.align.horizontal }, "exact", s.workarea.width/3),
|
||||
wibox.widget { nil, nil, theme.mpd.widget, layout = wibox.layout.align.horizontal },
|
||||
rspace0,
|
||||
theme.weather.icon,
|
||||
theme.weather.widget,
|
||||
|
|
Loading…
Reference in a new issue