removed all windows decorations properly, added window closing and compositor exiting as well as view focusing

This commit is contained in:
Harrison DiAmbrosio 2025-10-25 18:50:06 -04:00
parent f636efdfe9
commit 976900ffa6
11 changed files with 289 additions and 117 deletions

View file

@ -1,10 +1,10 @@
local env_conf = os.getenv("XDG_CONFIG_HOME")
if not env_conf then
env_conf = os.getenv("HOME")
if not env_conf then
error("Couldn't determine potential config directory is $HOME set?")
end
env_conf = mez.fs.joinpath(env_conf, ".config")
env_conf = os.getenv("HOME")
if not env_conf then
error("Couldn't determine potential config directory is $HOME set?")
end
env_conf = mez.fs.joinpath(env_conf, ".config")
end
mez.path.config = mez.fs.joinpath(env_conf, "mez", "init.lua")
@ -12,23 +12,27 @@ package.path = package.path..";"..mez.fs.joinpath(env_conf, "mez", "lua", "?.lua
-- this is an example
mez.input.add_keymap("alt", "a", {
press = function()
print("hello from my keymap")
end
press = function()
print("hello from my keymap")
end
})
mez.input.add_keymap("alt", "Return", {
press = function()
print("spawning foot")
mez.api.spawn("foot")
end
press = function()
mez.api.spawn("foot")
end,
})
mez.api.add_keymap("alt", "p", {
press = function()
print("spawning foot")
mez.api.spawn("wmenu-run")
end
mez.input.add_keymap("alt", "c", {
press = function ()
mez.api.close()
end
})
mez.input.add_keymap("alt", "q", {
press = function ()
mez.api.exit();
end
})
-- mez.input.add_keymap("alt", "a", {