feat: descriptions for hyprland binds

This commit is contained in:
2026-07-11 09:12:24 +02:00
parent b11a8f82c6
commit c51f60064e
10 changed files with 127 additions and 92 deletions
+10 -10
View File
@@ -10,42 +10,42 @@ hl.define_submap("window", function()
hl.bind("x", function()
hl.dispatch(hl.dsp.window.close())
exit_submap()
end)
end, { description = "Close active window" })
hl.bind("q", function()
hl.dispatch(hl.dsp.window.close())
exit_submap()
end)
end, { description = "Close active window" })
-- Fullscreen
hl.bind("f", function()
hl.dispatch(hl.dsp.window.fullscreen({ mode = "fullscreen" }))
exit_submap()
end)
end, { description = "Toggle fullscreen" })
-- Floating
hl.bind("v", function()
hl.dispatch(hl.dsp.window.float())
exit_submap()
end)
end, { description = "Toggle floating" })
-- Center
hl.bind("c", function()
hl.dispatch(hl.dsp.window.center())
exit_submap()
end)
end, { description = "Centre window (when floating)" })
-- Kill
hl.bind("SHIFT + K", function()
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Insta-Kill activated' --app-name='Hyprtclt'"))
hl.dispatch(hl.dsp.exec_cmd("hyprctl kill"))
exit_submap()
end)
end, { description = "Activate insta-kill" })
-- Resize
hl.bind("l", hl.dsp.window.resize({ x = 10, y = 0 }))
hl.bind("h", hl.dsp.window.resize({ x = -10, y = 0 }))
hl.bind("j", hl.dsp.window.resize({ x = 0, y = 10 }))
hl.bind("k", hl.dsp.window.resize({ x = 0, y = -10 }))
hl.bind("l", hl.dsp.window.resize({ x = 10, y = 0 }), { description = "Increase size horizontally" })
hl.bind("h", hl.dsp.window.resize({ x = -10, y = 0 }), { description = "Decrease size horizontally" })
hl.bind("j", hl.dsp.window.resize({ x = 0, y = 10 }), { description = "Increase size vertically" })
hl.bind("k", hl.dsp.window.resize({ x = 0, y = -10 }), { description = "Decrease size vertically" })
hl.bind("Escape", function()
exit_submap()