Hi people, the attached patch fixes a little thing with the default awesome menu. strict.lua complained about myawesomemenu not being defined where it was used first.
--
GCS/IT/M d- s+:- a-- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- ?O M-- ?V PS++ PE- Y++ PGP+++ t+ 5 X+ R tv b+++ DI+++
D+++ G+ e h! r y+
Gregor Best
From 2dbff93da3feff2c024a03a5ee7cbc8a96600969 Mon Sep 17 00:00:00 2001 From: Gregor Best <[email protected]> Date: Tue, 8 Sep 2009 13:45:57 +0200 Subject: [PATCH] awesomerc.lua: fix menu Signed-off-by: Gregor Best <[email protected]> --- awesomerc.lua.in | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 407191e..6583e9e 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -48,13 +48,12 @@ 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 }) +myawesomemenu = { + { "manual", terminal .. " -e man awesome" }, + { "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" }, + { "restart", awesome.restart }, + { "quit", awesome.quit } +} -- }}} -- {{{ Wibox @@ -62,12 +61,13 @@ mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon), mytextclock = awful.widget.textclock({ align = "right" }) -- Create a laucher widget and a main menu -myawesomemenu = { - { "manual", terminal .. " -e man awesome" }, - { "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" }, - { "restart", awesome.restart }, - { "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" }) -- 1.6.4.2
pgpA71QYaG7yt.pgp
Description: PGP signature
