feat(awesomeWM): remove main menu

This commit is contained in:
tux
2024-11-14 07:18:33 +05:30
parent dee61c4a08
commit dda4d28db0
3 changed files with 0 additions and 47 deletions

View File

@ -1,12 +1,7 @@
local awful = require("awful")
local widgets = require("ui")
--- Global mouse bindings
awful.mouse.append_global_mousebindings({
awful.button(nil, 3, function()
widgets.menu.main:toggle()
end),
awful.button(nil, 4, awful.tag.viewprev),
awful.button(nil, 5, awful.tag.viewnext),
})

View File

@ -1,6 +1,5 @@
-- Returns all widgets, with assigned names, in a table.
return {
menu = require(... .. ".menu"),
notification = require(... .. ".notification"),
titlebar = require(... .. ".titlebar"),
wibar = require(... .. ".wibar"),

View File

@ -1,41 +0,0 @@
local awful = require("awful")
local beautiful = require("beautiful")
--- Menu
local menu = {}
local apps = require("config.apps")
local hkey_popup = require("awful.hotkeys_popup")
-- Create a main menu.
menu.awesome = {
{
"hotkeys",
function()
hkey_popup.show_help(nil, awful.screen.focused())
end,
},
{ "manual", apps.terminal .. " -e man awesome" },
-- Not part of the original config but extremely useful, especially as the example
-- config is meant to serve as an example to build your own environment upon.
{
"docs",
(os.getenv("BROWSER") or "firefox") .. " https://awesomewm.org/apidoc",
},
{ "edit config", apps.editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{
"quit",
function()
awesome.quit()
end,
},
}
menu.main = awful.menu({
items = {
{ "awesome", menu.awesome, beautiful.awesome_icon },
{ "open terminal", apps.terminal },
},
})
return menu