feat(hypr): bind org agenda and capture to floating terminal windows

SUPER+A now opens the Org agenda (replacing the alter_zorder binding,
commented out) and SUPER+CONTROL+A opens Org capture. Both launch in a
centered floating window via new window-class rules.
This commit is contained in:
2026-10-05 12:07:38 -04:00
parent 4b494eb433
commit c2b4707b0a
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -172,6 +172,10 @@ hl.bind("SUPER + SHIFT + return", hl.dsp.exec_cmd("gtk-launch herdr.desktop"), {
hl.bind("SUPER + return", hl.dsp.exec_cmd("gtk-launch tmux.desktop"), { description = "Open tmux terminal" })
hl.bind("SUPER + N", hl.dsp.exec_cmd(terminal .. " -a quicknotes -e nvim +'Obsidian today'"),
{ description = "Open Obsidian today in a centered floating window" })
hl.bind("SUPER + A", hl.dsp.exec_cmd(terminal .. " -a agenda -e nvim +'Org agenda t'"),
{ description = "Open Org agenda in a centered floating window" })
hl.bind("SUPER + CONTROL + A", hl.dsp.exec_cmd(terminal .. " -a capture -e nvim +'Org capture t'"),
{ description = "Open Org capture in a centered floating window" })
hl.bind("SUPER + B", hl.dsp.exec_raw(browser), { description = "Open browser" })
hl.bind("SUPER + I", sysinfo, { description = "Show system info" })
@@ -252,7 +256,7 @@ hl.bind("SUPER + T", toggle_float_with_limit,
-- hl.bind("SUPER + P", hl.dsp.window.pseudo(), { description = "Window: Toggle pseudo tiling" })
hl.bind("SUPER + P", toggle_pin, { description = "Window: Toggle Pin" })
hl.bind("SUPER + A", hl.dsp.window.alter_zorder({ mode = "top" }), { description = "Window: Move to top" })
-- hl.bind("SUPER + A", hl.dsp.window.alter_zorder({ mode = "top" }), { description = "Window: Move to top" })
hl.bind("SUPER + left", hl.dsp.focus({ direction = "l" }), { description = "Window: Focus left" })
hl.bind("SUPER + right", hl.dsp.focus({ direction = "r" }), { description = "Window: Focus right" })