-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.lua
30 lines (26 loc) · 903 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
local beautiful = require("beautiful")
local awful = require("awful")
-- {{{ 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 })
awful.menu.menu_keys = { up = { "k", "Up" },
down = { "j", "Down" },
exec = { "l", "Return", "Right" },
enter = { "Right" },
back = { "h", "Left" },
close = { "q", "Escape" },
}
-- }}}