aboutsummaryrefslogtreecommitdiff
path: root/config.dot/awesome.link/menu.lua
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-08-17 17:24:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-08-17 17:24:31 -0300
commit3f7027442ad7da6d89413b2b868c697b2fadad53 (patch)
tree62e681597fdd03c95f800c8db74456d05b7d2d07 /config.dot/awesome.link/menu.lua
parent5353762c8a79621ca668c42dcd4104901cf144bf (diff)
parent2bc3a810fe82f69d59c92d555f4461cdd6012cf8 (diff)
downloadawesome-3f7027442ad7da6d89413b2b868c697b2fadad53.tar.gz
awesome-3f7027442ad7da6d89413b2b868c697b2fadad53.tar.bz2
Merge branch 'feature/stretch'
Diffstat (limited to 'config.dot/awesome.link/menu.lua')
-rw-r--r--config.dot/awesome.link/menu.lua22
1 files changed, 15 insertions, 7 deletions
diff --git a/config.dot/awesome.link/menu.lua b/config.dot/awesome.link/menu.lua
index 2fa3c60..098291d 100644
--- a/config.dot/awesome.link/menu.lua
+++ b/config.dot/awesome.link/menu.lua
@@ -1,17 +1,25 @@
-- {{{ Menu
--- Create a laucher widget and a main menu
+-- Create a launcher widget and a main menu
+menubar = require("menubar")
+hotkeys_popup = require("awful.hotkeys_popup").widget
+
myawesomemenu = {
- { "quit", awesome.quit },
- { "restart", awesome.restart },
- { "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" }
+ { "hotkeys", function() return false, hotkeys_popup.show_help end},
+ { "manual", terminal .. " -e man awesome" },
+ { "edit config", editor_cmd .. " " .. awesome.conffile },
+ { "restart", awesome.restart },
+ { "quit", function() awesome.quit() end}
}
-mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
- { "debian", debian.menu.Debian_menu.Debian },
+mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
+ { "debian", debian.menu.Debian_menu.Debian },
{ "terminal", terminal }
}
})
-mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
+mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
+
+-- Menubar configuration
+menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- }}}