awesomerc: put systray into statusbar

table.insert doesn't work on statusbar.widgets because statusbar.widgets
always returns a new copy.

'condition and a or b' works like 'condition ? a : b' in C.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Kanru Chen 2008-08-09 02:04:11 +08:00 committed by Julien Danjou
parent 533dee543f
commit 94dab79ff3
1 changed files with 2 additions and 2 deletions

View File

@ -144,11 +144,11 @@ for s = 1, screen.count() do
mytasklist,
mypromptbox,
mytextbox,
mylayoutbox[s]
mylayoutbox[s],
s == screen.count() and mysystray or nil
}
mystatusbar[s].screen = s
end
table.insert(mystatusbar[screen.count()].widgets, mysystray)
-- }}}
-- {{{ Mouse bindings