-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.lua
38 lines (35 loc) · 846 Bytes
/
menu.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
-- Standard awesome library
local awful = require("awful")
-- Widget and layout library
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local hotkeys_popup = require("awful.hotkeys_popup")
local constants = require("constants")
local terminal = constants.terminal
local editor_cmd = constants.editor_cmd
-- {{{ Menu
-- Create a launcher widget and a main menu
local myawesomemenu = {
{
"hotkeys",
function()
hotkeys_popup.show_help(nil, awful.screen.focused())
end,
},
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{
"quit",
function()
awesome.quit()
end,
},
}
return awful.menu({
items = {
{ "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", terminal },
},
})