aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/configs
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-08-28 20:24:51 -0400
committerPinapelz <yukais@pinapelz.com>2026-08-29 21:41:57 -0700
commit7b8e57dad69facd776788c69f2456260428483dd (patch)
tree463ef8024658bce38db8bc1e3dfb567698302a8a /config/hypr/configs
parentfc4dab2308fcce50b44fe042a0b42b37f95a5e20 (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/configs')
-rw-r--r--config/hypr/configs/system_keybinds.lua42
1 files changed, 33 insertions, 9 deletions
diff --git a/config/hypr/configs/system_keybinds.lua b/config/hypr/configs/system_keybinds.lua
index 0f0c9633..0106b3fa 100644
--- a/config/hypr/configs/system_keybinds.lua
+++ b/config/hypr/configs/system_keybinds.lua
@@ -167,13 +167,19 @@ local function dispatch(name, args)
return exec_cmd(args)
end
if name == "killactive" and window_api.close then
- return window_api.close()
+ return function()
+ hl.dispatch(window_api.close())
+ end
end
if name == "fullscreen" and 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 name == "movefocus" and dsp and dsp.focus then
return function()
@@ -217,25 +223,43 @@ local function dispatch(name, args)
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()
+ local ok, dispatcher = pcall(dsp.layout, args)
+ if ok and dispatcher then
+ hl.dispatch(dispatcher)
+ end
+ end
end
if name == "togglesplit" and dsp and dsp.layout then
- return dsp.layout("togglesplit")
+ return function()
+ local ok, dispatcher = pcall(dsp.layout, "togglesplit")
+ if ok and dispatcher then
+ hl.dispatch(dispatcher)
+ 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" and window_api.resize then
local x, y = args:match("^(%-?%d+)%s+(%-?%d+)$")
if x and y then
- return window_api.resize({ x = tonumber(x) or 0, y = tonumber(y) or 0, relative = true })
+ return function()
+ hl.dispatch(window_api.resize({ x = tonumber(x) or 0, y = tonumber(y) or 0, relative = true }))
+ end
end
end
if name == "movewindow" and args == "" and window_api.drag then
- return window_api.drag()
+ return function()
+ hl.dispatch(window_api.drag())
+ end
end
if args ~= "" then
return raw_dispatch_cmd(name .. " " .. args)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage