2023-05-23 05:35:51 +00:00
|
|
|
--- awesome stdlib
|
2023-05-01 23:51:42 +00:00
|
|
|
local awful = require("awful")
|
2023-04-20 04:08:44 +00:00
|
|
|
local hotkeys_popup = require("awful.hotkeys_popup").widget
|
2023-05-23 05:35:51 +00:00
|
|
|
--- theme lib
|
|
|
|
local beautiful = require("beautiful") --- for awesome.icon
|
2023-04-20 04:08:44 +00:00
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
local M = {}
|
|
|
|
local _M = {}
|
|
|
|
------------------------------------------
|
|
|
|
--- import terminal variable from rc.lua
|
2023-04-20 04:08:44 +00:00
|
|
|
local terminal = RC.vars.terminal
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- import editor variable from OS environment
|
2023-05-01 23:51:42 +00:00
|
|
|
local editor = os.getenv("EDITOR") or "nano"
|
2023-04-20 04:08:44 +00:00
|
|
|
local editor_cmd = terminal .. " -e " .. editor
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
------------------------------------------
|
|
|
|
--- make it harder to quit awesome accidentally
|
2023-05-01 23:51:42 +00:00
|
|
|
M.quitmenu =
|
2023-05-23 02:52:05 +00:00
|
|
|
{{ "i mean it!", function() awesome.quit() end }}
|
2023-04-23 01:32:15 +00:00
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- "awesome" menu
|
2023-04-20 04:08:44 +00:00
|
|
|
M.awesome = {
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "hotkeys" , function() hotkeys_popup.show_help(nil,awful.screen.focused())
|
|
|
|
end },
|
|
|
|
{ "manual" , terminal
|
|
|
|
.. " -e man awesome" },
|
|
|
|
{ "edit config" , editor_cmd
|
|
|
|
.. " "
|
|
|
|
.. awesome.conffile },
|
|
|
|
{ "terminal" , terminal },
|
|
|
|
{ "restart" , awesome.restart },
|
|
|
|
{ "quit" , M.quitmenu }
|
2023-04-20 04:08:44 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- browsers and other network-oriented software
|
2023-04-20 04:08:44 +00:00
|
|
|
M.network = {
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "firefox" , "firefox" },
|
|
|
|
{ "discord" , "flatpak run\
|
|
|
|
com.discordapp.Discord" },
|
|
|
|
{ "thunderbird" , "thunderbird" },
|
|
|
|
{ "steam" , "steam" },
|
|
|
|
{ "qbittorrent" , "qbittorrent" },
|
|
|
|
{ "keepassxc" , "keepassxc" }
|
2023-04-20 04:08:44 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- DEVELOPERS, DEVELOPERS, DEVELOPERS, DEVELOPERS
|
2023-04-20 04:08:44 +00:00
|
|
|
M.develop = {
|
2023-05-23 02:52:05 +00:00
|
|
|
{ "vs code" , "code" },
|
2023-05-12 08:07:32 +00:00
|
|
|
{ "bless" , "bless" },
|
2023-05-23 05:35:51 +00:00
|
|
|
-- { "dbeaver studio" , "flatpak run\
|
|
|
|
-- io.dbeaver.DBeaverCommunity" },
|
|
|
|
-- { "beekeeper studio" , "flatpak run\
|
|
|
|
-- io.beekeeperstudio.Studio" },
|
2023-05-12 08:07:32 +00:00
|
|
|
{ "sqlite browser" , "sqlitebrowser" }
|
2023-04-20 04:08:44 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- emulators
|
2023-04-20 04:08:44 +00:00
|
|
|
M.emulators = {
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "citra" , "flatpak run\
|
|
|
|
org.citra_emu.citra" },
|
|
|
|
{ "dolphin" , "flatpak run\
|
|
|
|
org.DolphinEmu.dolphin-emu" },
|
|
|
|
{ "yuzu" , "flatpak run\
|
|
|
|
org.yuzu_emu.yuzu" },
|
|
|
|
{ "duckstation" , "flatpak run\
|
|
|
|
org.duckstation.DuckStation" },
|
|
|
|
{ "PPSSPP" , "flatpak run\
|
|
|
|
org.ppsspp.PPSSPP" }
|
2023-04-23 01:32:15 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- vintage story [different versions of VS for mods]
|
|
|
|
M.vtgstry = {
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "latest" , "vintagestory" },
|
|
|
|
{ "flatpak" , "flatpak run\
|
|
|
|
at.vintagestory.VintageStory" }
|
2023-04-20 04:08:44 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- videogames
|
2023-04-20 04:08:44 +00:00
|
|
|
M.games = {
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "emulators" , M.emulators },
|
|
|
|
{ "vintage story" , M.vtgstry },
|
|
|
|
{ "team fortress 2" , "steam\
|
|
|
|
steam://rungameid/440" },
|
|
|
|
{ "ballisticNG" , "steam\
|
|
|
|
steam://rungameid/473770" },
|
|
|
|
{ "them's fightin' herds" , "steam\
|
|
|
|
steam://rungameid/574980" },
|
2023-05-23 02:52:05 +00:00
|
|
|
{ "doom" , "gzdoom" },
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "osu!" , "flatpak run\
|
|
|
|
sh.ppy.osu" },
|
|
|
|
{ "minecraft" , "flatpak run\
|
2023-05-23 02:52:05 +00:00
|
|
|
org.prismlauncher.PrismLauncher" },
|
|
|
|
{ "solitaire" , "pysol" }
|
2023-04-20 04:08:44 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- utilities [kind of a misc category]
|
2023-04-20 04:08:44 +00:00
|
|
|
M.utils = {
|
2023-05-23 02:52:05 +00:00
|
|
|
{ "xed" , "xed" },
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "catfish" , "catfish" },
|
|
|
|
{ "anki" , "flatpak run net.ankiweb.Anki" },
|
2023-05-23 02:52:05 +00:00
|
|
|
{ "mkvtoolnix" , "mkvtoolnix-gui" },
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "text pieces" , "flatpak run\
|
|
|
|
com.github.liferooter.textpieces" },
|
|
|
|
{ "alacarte" , "alacarte" },
|
|
|
|
{ "flatseal" , "flatpak run com.github.tchx84.Flatseal" },
|
|
|
|
{ "xarchiver" , "xarchiver" },
|
|
|
|
{ "piper" , "piper" },
|
|
|
|
{ "wally" , "wally" }
|
2023-04-20 04:08:44 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- "media" programs [image viewers, video players, etc]
|
2023-04-20 04:08:44 +00:00
|
|
|
M.media = {
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "hydrus" , "flatpak run io.github.hydrusnetwork.hydrus" },
|
2023-05-23 05:35:51 +00:00
|
|
|
{ "vlc" , "vlc" },
|
2023-05-01 23:51:42 +00:00
|
|
|
{ "youtube" , "/usr/lib64/chromium-browser/chromium-browser.sh\
|
|
|
|
--profile-directory=Default\
|
|
|
|
--app-id=agimnkijcaahngcdmfeangaknmldooml" },
|
2023-05-23 05:35:51 +00:00
|
|
|
{ "spotify" , "flatpak run com.spotify.Client" },
|
|
|
|
{ "nomacs" , "nomacs" }
|
2023-05-01 23:51:42 +00:00
|
|
|
}
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- "visual arts" stuff
|
2023-05-01 23:51:42 +00:00
|
|
|
M.vis = {
|
|
|
|
{ "blender" , "steam\
|
|
|
|
steam://rungameid/365670" },
|
|
|
|
{ "krita" , "krita" },
|
|
|
|
{ "GIMP" , "gimp-2.10" },
|
|
|
|
{ "beeref" , "flatpak run\
|
|
|
|
org.beeref.BeeRef" }
|
2023-04-20 04:08:44 +00:00
|
|
|
}
|
2023-05-23 05:35:51 +00:00
|
|
|
------------------------------------------
|
2023-04-20 04:08:44 +00:00
|
|
|
function _M.get()
|
|
|
|
|
2023-05-23 05:35:51 +00:00
|
|
|
--- main menu
|
2023-05-01 23:51:42 +00:00
|
|
|
local menu_items = {
|
|
|
|
{ "awesome" , M.awesome,
|
|
|
|
beautiful.awesome_subicon },
|
|
|
|
{ "terminal" , terminal },
|
|
|
|
{ "thunar" , "Thunar" },
|
|
|
|
{ "www" , M.network },
|
|
|
|
{ "media" , M.media },
|
|
|
|
{ "dev" , M.develop },
|
|
|
|
{ "art" , M.vis },
|
|
|
|
{ "games" , M.games },
|
|
|
|
{ "utils" , M.utils }
|
|
|
|
}
|
2023-04-20 04:08:44 +00:00
|
|
|
return menu_items
|
|
|
|
end
|
2023-05-23 05:35:51 +00:00
|
|
|
------------------------------------------
|
2023-04-20 04:08:44 +00:00
|
|
|
return setmetatable({}, { __call = function(_, ...) return _M.get(...) end })
|