Skip to content

2026-08-20

Hyprland Keybind Debugging & Fix

Fixed three bugs in ~/.config/hypr/modules/keybinds.lua:

  1. h1 typo (line 22)h1.dsp.exec_cmd(...) corrected to hl.dsp.exec_cmd(...). LSP flagged undefined-global h1.
  2. Garbage line R323413# — accidental paste on line 4; removed. Caused multiple LSP parse errors.
  3. rkittykittyrkitty binary does not exist on this system (/usr/bin/kitty is the installed terminal). Corrected the opencode keybind command.

Working keybind

hl.bind(mainMod .. " + CTRL + O",
  hl.dsp.exec_cmd("kitty --class opencode-term -e env OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true opencode -c"),
  { description = "Open Code" })
  • SUPER + CTRL + O confirmed registered via hyprctl binds (modmask 68, key O)
  • Command tested with hyprctl dispatch exec; kitty + opencode launch successfully
  • User confirmed keybind works in the live session

Relevant files

  • /home/dini/.config/hypr/modules/keybinds.lua — all fixes applied here
  • /home/dini/.config/hypr/hyprland.lua — entry point, requires modules.keybinds