added more widgets, rewritten folder structure

This commit is contained in:
Crylia
2021-11-28 14:58:07 +01:00
parent 7f28224bf1
commit 32ba8ff3a8
65 changed files with 832 additions and 1873 deletions

View File

@@ -4,21 +4,16 @@
-- Awesome Libs
local awful = require("awful")
-- Menu Namespace
local M = { }
-- Module Namespace
local _M = { }
local terminal = RC.vars.terminal
M.session = {
local session = {
{ "Logout", function () awesome.quit() end },
{ "Shutdown", function () awful.spawn.with_shell('shutdown now') end },
{ "Reboot", function () awful.spawn.with_shell('reboot') end },
}
M.applications = {
local applications = {
{ "Firefox", "firefox" },
{ "VS Code", "code" },
{ "Blender", "blender" },
@@ -26,21 +21,18 @@ M.applications = {
{ "Lutris", "lutris" },
}
M.settings = {
local settings = {
{ "General Settings", "gnome-control-center" },
{ "Power Settings", "xfce4-power-manager-settings" },
{ "Display Settings", "arandr" }
}
function _M.get()
return function()
local menu_items = {
{ "Power Menu", M.session },
{ "Applications", M.applications },
{ "Open Terminal", terminal },
{ "Settings", M.settings },
{ "Power Menu", session },
{ "Applications", applications },
{ "Open Terminal", user_vars.vars.terminal },
{ "Settings", settings },
}
return menu_items
end
return _M.get
return menu_ttems
end