From 12c6f2952ed366ab43f3a7c3bd8fc59a18407b93 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Sun, 16 Aug 2026 10:43:39 -0400 Subject: Fixed toggleSplit layout in LUA workflow Signed-off-by: Don Williams 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 --- CHANGELOG.md | 1 + config/hypr/configs/system_keybinds.lua | 9 +++++++++ config/hypr/lua/keybind_helpers.lua | 5 ++++- config/hypr/lua/user_keybinds_helper.lua | 9 +++++++++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3daa5dc..5c8139f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ ## Fixed: +- `togglesplit` in LUA workflow - Waybar doesn't restart after Dark/Light theme in Debian - Thanks to @tomirgang for the fix - Not all waybar clocks togggled from 12hr/24hr correctly 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 -- cgit v1.2.3