]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/rc.lua
split menu into its own file
[dotfiles.git] / awesome / rc.lua
index 94b2454040e272845eb5c13a2dac9e9783fcbda3..ead665c613e800790b4c85dc70a9aec417f6c112 100644 (file)
@@ -66,26 +66,8 @@ if beautiful.wallpaper then
 end
 -- }}}
 
--- {{{ Menu
--- Create a laucher widget and a main menu
-myawesomemenu = {
-   { "manual", terminal .. " -e man awesome" },
-   { "edit config", editor_cmd .. " " .. awesome.conffile },
-   { "restart", awesome.restart },
-   { "quit", awesome.quit }
-}
-
-mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
-                                    { "open terminal", terminal }
-                                  }
-                        })
-
-mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
-                                     menu = mymainmenu })
-
--- Menubar configuration
-menubar.utils.terminal = terminal -- Set the terminal for applications that require it
--- }}}
+--Menu
+require("menu")
 
 -- {{{ Wibox
 -- Create a textclock widget