diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 0aea3c2d..7adc639c 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -116,7 +116,7 @@ mytasklist.buttons = awful.util.table.join( for s = 1, screen.count() do -- Create a promptbox for each screen - mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright }) + mypromptbox[s] = awful.widget.prompt() -- Create an imagebox widget which will contains an icon indicating which layout we're using. -- We need one layoutbox per screen. mylayoutbox[s] = awful.widget.layoutbox(s) @@ -126,28 +126,31 @@ for s = 1, screen.count() do awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end), awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) -- Create a taglist widget - mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons) + mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons) -- Create a tasklist widget - mytasklist[s] = awful.widget.tasklist(function(c) - return awful.widget.tasklist.label.currenttags(c, s) - end, mytasklist.buttons) + mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons) -- Create the wibox mywibox[s] = awful.wibox({ position = "top", screen = s }) + + -- Create a table with widgets that go to the right + right_aligned = { + layout = awful.widget.layout.horizontal.rightleft + } + if s == 1 then table.insert(right_aligned, mysystray) end + table.insert(right_aligned, mytextclock) + table.insert(right_aligned, mylayoutbox[s]) + -- Add widgets to the wibox - order matters mywibox[s].widgets = { - { - mylauncher, - mytaglist[s], - mypromptbox[s], - layout = awful.widget.layout.horizontal.leftright - }, - mylayoutbox[s], - mytextclock, - s == 1 and mysystray or nil, + mylauncher, + mytaglist[s], + mypromptbox[s], + right_aligned, mytasklist[s], - layout = awful.widget.layout.horizontal.rightleft + layout = awful.widget.layout.horizontal.leftright, + height = mywibox[s].height } end -- }}}