Permalink
Browse files

split all components

  • Loading branch information...
alswl committed Sep 23, 2012
1 parent a6eda79 commit 5fb2d45578c86953b1b8f29281d1e238224bc793
View
@@ -2,3 +2,5 @@
autostart.sh
rc.lua
menu_arch.lua
+menu.lua
+rule.lua
View
@@ -0,0 +1,27 @@
+-- {{{ 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 },
+ { "suspend", function () awful.util.spawn("sudo pm-suspend") end},
+ { "power off", "dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop"},
+}
+
+mymainmenu = awful.menu({
+ items = {
+ {"awesome", myawesomemenu, beautiful.awesome_icon},
+ -- {"应用程序 (&A)", debian.menu.Debian_menu.Debian}, -- ubuntu
+ {"应用程序 (&A)", xdgmenu}, -- arch
+ {"&Nautilus", "nautilus --no-desktop", '/usr/share/icons/hicolor/32x32/apps/nautilus.png'},
+ {"&Thunar", "thunar"},
+ {"屏幕键盘", "matchbox-keyboard", '/usr/share/pixmaps/matchbox-keyboard.png'},
+ {"open terminal", terminal }
+ }
+})
+
+local mylauncher = awful.widget.launcher({
+ image = image(beautiful.awesome_icon),
+ menu = mymainmenu })
+-- }}}
Oops, something went wrong.

0 comments on commit 5fb2d45

Please sign in to comment.