From efca7dc9e7ef2dcb0a452141bb1291b4e9745033 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 31 Aug 2009 11:52:49 +0200 Subject: [PATCH] awesomerc: split menu creation out of wibox Signed-off-by: Julien Danjou --- awesomerc.lua.in | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 724c539f..f7fcad3a 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -47,6 +47,16 @@ for s = 1, screen.count() do end -- }}} +-- {{{ Menu +mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, + { "open terminal", terminal } + } + }) + +mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon), + menu = mymainmenu }) +-- }}} + -- {{{ Wibox -- Create a textclock widget mytextclock = awful.widget.textclock({ align = "right" }) @@ -59,14 +69,6 @@ myawesomemenu = { { "quit", awesome.quit } } -mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, - { "open terminal", terminal } - } - }) - -mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon), - menu = mymainmenu }) - -- Create a systray mysystray = widget({ type = "systray" }) @@ -305,7 +307,7 @@ client.add_signal("manage", function (c, startup) end -- Add a titlebar - -- awful.titlebar.add(c, { modkey = modkey }) + awful.titlebar.add(c, { modkey = modkey }) -- Enable sloppy focus c:add_signal("mouse::enter", function(c)