-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.lua
65 lines (62 loc) · 1.55 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
-------------------------------------------------
-- author: David Cobac
-- twitter: @david_cobac
-- github: https://github.com/cobacdavid
-- date: 2020
-- copyright: CC-BY-NC-SA
-------------------------------------------------
-- some parts from awesome wm
-- distribution
-- copyright ??
-------------------------------------------------
-- Menubar configuration
menubar.utils.terminal = terminal
menubar.menu_gen.all_menu_dirs = {
"/usr/share/applications",
"/usr/local/share/applications",
myhome .. "/.local/share/applications"
}
menubar.cache_entries = true
menubar.app_folders = {
"/usr/share/applications/"
}
menubar.show_categories = true
--
myawesomemenu = {
{"config", editor_cmd .. " " .. awesome.conffile },
{"sauv. config",
function()
awful.spawn.with_shell(configSvg)
end
},
-- {"hotkeys", function() return false, hotkeys_popup.show_help end},
{"redémarrer", function()
fu.restartAwesome()
end
},
{"quitter",
function()
fu.sortirAwesome()
end
}
}
myrcfilesmenu = {
{"prof dir", editor_cmd .. " " .. latexRcFile},
{"mp dir", editor_cmd .. " " .. metapostRcFile},
{"emacs dir", editor_cmd .. " " .. emacsRcFile},
{"elisp dir", editor_cmd .. " " .. emacsElispRcFile}
}
mymainmenu = awful.menu(
{
items = {
{"awesome", myawesomemenu, beautiful.awesome_icone},
{"rcfiles", myrcfilesmenu},
{"editeur", editor_cmd},
{"fichiers", fileMgr},
},
theme = {
width = 130,
}
}
)
-- }}}