mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-05 20:56:33 +05:30
feat(awesomeWM): remove main menu
This commit is contained in:
@ -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),
|
||||
})
|
||||
|
@ -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"),
|
||||
|
@ -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
|
Reference in New Issue
Block a user