mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
some very simple docs in the README for presentability
This commit is contained in:
parent
0bb8c83300
commit
df247f6757
3 changed files with 117 additions and 9 deletions
|
|
@ -1,11 +1,3 @@
|
|||
mez.input.add_keymap("alt", "g", {
|
||||
press = function ()
|
||||
for _, id in ipairs(mez.view.get_all_ids()) do
|
||||
print(id)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
local master = function()
|
||||
local config = {
|
||||
tag_count = 5,
|
||||
|
|
@ -147,6 +139,7 @@ local master = function()
|
|||
|
||||
mez.input.add_keymap("alt|shift", "Return", {
|
||||
press = function()
|
||||
print(mez.view.get_focused_id())
|
||||
mez.api.spawn("alacritty")
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
37
runtime/share/mezzaluna/new_master.lua
Normal file
37
runtime/share/mezzaluna/new_master.lua
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
---@module 'master'
|
||||
|
||||
---@class Master
|
||||
---@field default_config MasterConfig
|
||||
---@field config MasterConfig
|
||||
---@field state MasterState
|
||||
---@field builtins MasterBuiltins
|
||||
local M = {};
|
||||
|
||||
M.builtins = {
|
||||
}
|
||||
|
||||
---@class MasterConfig
|
||||
---@field master_ratio number
|
||||
---@field tag_count number
|
||||
local default_config = {
|
||||
master_ratio = 0.5,
|
||||
tag_count = 5,
|
||||
|
||||
}
|
||||
|
||||
---@class Tag
|
||||
---@field floating number[]
|
||||
---@field stack number[]
|
||||
|
||||
---@class MasterState
|
||||
---@field tag_id number
|
||||
M.state = {
|
||||
tag_id = 1
|
||||
}
|
||||
|
||||
M.setup = function(config)
|
||||
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue