diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-08-28 20:24:51 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:41:57 -0700 |
| commit | 7b8e57dad69facd776788c69f2456260428483dd (patch) | |
| tree | 463ef8024658bce38db8bc1e3dfb567698302a8a /config/hypr/lua/user_keybinds_helper.lua | |
| parent | fc4dab2308fcce50b44fe042a0b42b37f95a5e20 (diff) | |
Fixed LUA runtime err removing master
Signed-off-by: Don Williams <don.e.williams@gmail.com>
On branch development
Your branch is up to date with 'origin/development'.
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/lua/user_keybinds_helper.lua')
| -rw-r--r-- | config/hypr/lua/user_keybinds_helper.lua | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/config/hypr/lua/user_keybinds_helper.lua b/config/hypr/lua/user_keybinds_helper.lua index 0cb786f2..982c99ab 100644 --- a/config/hypr/lua/user_keybinds_helper.lua +++ b/config/hypr/lua/user_keybinds_helper.lua @@ -162,24 +162,32 @@ local function dispatch(name, args) end if name == "killactive" then if window_api.close then - return window_api.close() + return function() + hl.dispatch(window_api.close()) + end end if window_api.kill then - return window_api.kill() + return function() + hl.dispatch(window_api.kill()) + end end return raw_dispatch_cmd("killactive") end if name == "fullscreen" then if window_api.fullscreen then if args == "1" then - return window_api.fullscreen({ mode = "maximized" }) + return function() + hl.dispatch(window_api.fullscreen({ mode = "maximized" })) + end + end + return function() + hl.dispatch(window_api.fullscreen({ mode = "fullscreen" })) end - return window_api.fullscreen({ mode = "fullscreen" }) end if args == "1" then - return exec_cmd("hyprctl dispatch 'hl.dsp.window.fullscreen({ mode = \"maximized\" })'") + return exec_cmd("hyprctl dispatch 'hl.dsp.window.fullscreen({ mode = \\\"maximized\\\" })'") end - return exec_cmd("hyprctl dispatch 'hl.dsp.window.fullscreen({ mode = \"fullscreen\" })'") + return exec_cmd("hyprctl dispatch 'hl.dsp.window.fullscreen({ mode = \\\"fullscreen\\\" })'") end if name == "movefocus" and dsp and dsp.focus then return function() @@ -208,16 +216,28 @@ local function dispatch(name, args) return function() hl.dispatch(window_api.float({ action = "toggle" })) end end if name == "pseudo" and window_api.pseudo then - return window_api.pseudo() + return function() + hl.dispatch(window_api.pseudo()) + end end if (name == "layoutmsg" or name == "layout") and dsp and dsp.layout then - return dsp.layout(args) + return function() + dispatch_factory_safely(function() + return dsp.layout(args) + end) + end end if name == "togglesplit" and dsp and dsp.layout then - return dsp.layout("togglesplit") + return function() + dispatch_factory_safely(function() + return dsp.layout("togglesplit") + end) + end end if name == "resizewindow" and window_api.resize then - return window_api.resize() + return function() + hl.dispatch(window_api.resize()) + end end if name == "resizeactive" then return raw_dispatch_cmd("resizeactive " .. args) |
