1
0
awesomewm-config/menu.lua
2023-06-04 15:59:49 +03:00

25 lines
657 B
Lua

local menu = {
{ "Refresh", awesome.restart },
{ "Logout", function() awesome.quit() end },
{ "Restart", function() awful.spawn.with_shell('loginctl reboot') end },
{ "Shutdown", function() awful.spawn.with_shell('loginctl poweroff') end },
}
local main = awful.menu {
items = {
{ "Awesome", menu },
{ "Terminal", "kitty" },
{ "Browser", "brave" },
{ "Editor", "kitty -e nvim" },
{ "Music", "spotify" },
{ "Files", "nautilus" },
}
}
main.wibox.shape = help.rrect(beautiful.br)
root.buttons(gears.table.join(
awful.button({ }, 3, function () main:toggle() end),
awful.button({ }, 1, function () main:hide() end)
))