fix(hyprlua): correct Lua dispatcher API calls in binds.lua
- window.tag: pass table { tag = "..." } instead of bare string
- window.cycle_next: remove invalid false argument
- window.resize: use { x, y } fields instead of { delta = "x y" }
- group.change_active: replaced with hyprctl dispatch fallback (not in Lua API)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
parent
f453b1d3d3
commit
bf4821c48e
|
|
@ -73,7 +73,7 @@ hl.bind(mainMod .. " + CTRL + P", hl.dsp.exec_cmd("~/.config/scripts/scre
|
|||
hl.bind(mainMod .. " + Q", hl.dsp.window.close())
|
||||
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
|
||||
hl.bind(mainMod .. " + C", hl.dsp.window.pseudo())
|
||||
hl.bind(mainMod .. " + SHIFT + V", hl.dsp.window.tag("+centered")) -- TODO: verify hl.dsp.window.tag() API
|
||||
hl.bind(mainMod .. " + SHIFT + V", hl.dsp.window.tag({ tag = "+centered" }))
|
||||
hl.bind(mainMod .. " + SHIFT + Q", hl.dsp.exec_cmd("hyprctl kill"))
|
||||
|
||||
hl.bind(mainMod .. " + CTRL + M", hl.dsp.exec_cmd("~/.config/scripts/toggle-layout.sh"))
|
||||
|
|
@ -102,7 +102,7 @@ hl.bind(mainMod .. " + right", hl.dsp.focus({ direction = "right" }))
|
|||
hl.bind(mainMod .. " + up", hl.dsp.focus({ direction = "up" }))
|
||||
hl.bind(mainMod .. " + down", hl.dsp.focus({ direction = "down" }))
|
||||
|
||||
hl.bind(mainMod .. " + TAB", hl.dsp.focus({ cycle = true })) -- TODO: verify cycle focus API
|
||||
hl.bind(mainMod .. " + TAB", hl.dsp.window.cycle_next())
|
||||
hl.bind(mainMod .. " + SHIFT + TAB", hl.dsp.exec_cmd(winswitch))
|
||||
|
||||
--------------------
|
||||
|
|
@ -127,14 +127,14 @@ hl.bind(mainMod .. " + SHIFT + mouse:272", hl.dsp.window.resize(), { mouse = tru
|
|||
---- RESIZE --------
|
||||
--------------------
|
||||
|
||||
hl.bind(mainMod .. " + ALT + right", hl.dsp.window.resize({ delta = "10 0" }), { repeating = true }) -- TODO: verify resize delta API
|
||||
hl.bind(mainMod .. " + ALT + left", hl.dsp.window.resize({ delta = "-10 0" }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + up", hl.dsp.window.resize({ delta = "0 -10" }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + down", hl.dsp.window.resize({ delta = "0 10" }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + l", hl.dsp.window.resize({ delta = "10 0" }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + h", hl.dsp.window.resize({ delta = "-10 0" }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + k", hl.dsp.window.resize({ delta = "0 -10" }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + j", hl.dsp.window.resize({ delta = "0 10" }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + right", hl.dsp.window.resize({ x = 10, y = 0 }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + left", hl.dsp.window.resize({ x = -10, y = 0 }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + up", hl.dsp.window.resize({ x = 0, y = -10 }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + down", hl.dsp.window.resize({ x = 0, y = 10 }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + l", hl.dsp.window.resize({ x = 10, y = 0 }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + h", hl.dsp.window.resize({ x = -10, y = 0 }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + k", hl.dsp.window.resize({ x = 0, y = -10 }), { repeating = true })
|
||||
hl.bind(mainMod .. " + ALT + j", hl.dsp.window.resize({ x = 0, y = 10 }), { repeating = true })
|
||||
|
||||
--------------------
|
||||
---- WORKSPACES ----
|
||||
|
|
@ -192,8 +192,8 @@ hl.bind(mainMod .. " + SHIFT + XF86AudioMute", hl.dsp.window.move({ workspace =
|
|||
|
||||
hl.bind(mainMod .. " + ALT + C", hl.dsp.group.toggle()) -- TODO: verify hl.dsp.group API
|
||||
hl.bind(mainMod .. " + CTRL + SHIFT + C", hl.dsp.group.lock_active("toggle"))
|
||||
hl.bind(mainMod .. " + A", hl.dsp.group.change_active("f"))
|
||||
hl.bind(mainMod .. " + Y", hl.dsp.group.change_active("b"))
|
||||
hl.bind(mainMod .. " + A", hl.dsp.exec_cmd("hyprctl dispatch changegroupactive f"))
|
||||
hl.bind(mainMod .. " + Y", hl.dsp.exec_cmd("hyprctl dispatch changegroupactive b"))
|
||||
|
||||
hl.bind(mainMod .. " + SHIFT + ALT + left", hl.dsp.group.move_window("l"))
|
||||
hl.bind(mainMod .. " + SHIFT + ALT + right", hl.dsp.group.move_window("r"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue