diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-08-16 10:43:39 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:41:34 -0700 |
| commit | 12c6f2952ed366ab43f3a7c3bd8fc59a18407b93 (patch) | |
| tree | 4f21f2e6581acaee0b63560069f6f89edd64437b /config/hypr | |
| parent | 22013d3e7aaa3a26710d78aae4cda44b59e20f9b (diff) | |
Fixed toggleSplit layout in LUA workflow
Signed-off-by: Don Williams <don.e.williams@gmail.com>
Changes to be committed:
modified: CHANGELOG.md
modified: config/hypr/configs/system_keybinds.lua
modified: config/hypr/lua/keybind_helpers.lua
modified: config/hypr/lua/user_keybinds_helper.lua
Diffstat (limited to 'config/hypr')
| -rw-r--r-- | config/hypr/configs/system_keybinds.lua | 9 | ||||
| -rw-r--r-- | config/hypr/lua/keybind_helpers.lua | 5 | ||||
| -rw-r--r-- | config/hypr/lua/user_keybinds_helper.lua | 9 |
3 files changed, 22 insertions, 1 deletions
diff --git a/config/hypr/configs/system_keybinds.lua b/config/hypr/configs/system_keybinds.lua index dd654ccd..3db2a6ac 100644 --- a/config/hypr/configs/system_keybinds.lua +++ b/config/hypr/configs/system_keybinds.lua @@ -216,6 +216,15 @@ local function dispatch(name, args) hl.dispatch(window_api.float({ action = "toggle" })) end end + if name == "pseudo" and window_api.pseudo then + return window_api.pseudo() + end + if (name == "layoutmsg" or name == "layout") and dsp and dsp.layout then + return dsp.layout(args) + end + if name == "togglesplit" and dsp and dsp.layout then + return dsp.layout("togglesplit") + end if name == "resizewindow" and window_api.resize then return window_api.resize() end diff --git a/config/hypr/lua/keybind_helpers.lua b/config/hypr/lua/keybind_helpers.lua index 1b1a269b..b7f80127 100644 --- a/config/hypr/lua/keybind_helpers.lua +++ b/config/hypr/lua/keybind_helpers.lua @@ -206,9 +206,12 @@ local function dispatch(name, args) if name == "moveoutofgroup" and window_api.move then return window_api.move({ out_of_group = true }) end - if name == "layoutmsg" and dsp and dsp.layout then + if (name == "layoutmsg" or name == "layout") and dsp and dsp.layout then return dsp.layout(args) end + if name == "togglesplit" and dsp and dsp.layout then + return dsp.layout("togglesplit") + end if name == "bringactivetotop" and window_api.bring_to_top then return window_api.bring_to_top() end diff --git a/config/hypr/lua/user_keybinds_helper.lua b/config/hypr/lua/user_keybinds_helper.lua index aabb5f03..0cb786f2 100644 --- a/config/hypr/lua/user_keybinds_helper.lua +++ b/config/hypr/lua/user_keybinds_helper.lua @@ -207,6 +207,15 @@ local function dispatch(name, args) if name == "togglefloating" and window_api.float then return function() hl.dispatch(window_api.float({ action = "toggle" })) end end + if name == "pseudo" and window_api.pseudo then + return window_api.pseudo() + end + if (name == "layoutmsg" or name == "layout") and dsp and dsp.layout then + return dsp.layout(args) + end + if name == "togglesplit" and dsp and dsp.layout then + return dsp.layout("togglesplit") + end if name == "resizewindow" and window_api.resize then return window_api.resize() end |
