{
  "$type": "site.standard.document",
  "canonicalUrl": "https://til.iainsimmons.com/posts/add-keybinds-or-shortcuts-for-other-keys-in-hyprland",
  "description": "today iain learned: How to use the wev CLI tool to help add keybinds or shortcuts for special keys in Hyprland",
  "path": "/posts/add-keybinds-or-shortcuts-for-other-keys-in-hyprland",
  "publishedAt": "2025-11-15T00:00:00.000Z",
  "site": "at://did:plc:aoqs4f5ru6ztomatyvept7bf/site.standard.publication/3mnlsntqzp72a",
  "tags": [
    "hyprland",
    "linux",
    "dotfiles"
  ],
  "textContent": "I recently added some keybinds to my Hyprland config so I could get Super + Left and Super + Right to send the Home and End keys, respectively.\n\nThat one was simple enough, as was binding Super + Backspace to Delete:\n\nYou might wonder if those extra commas are required. They are, the blank space and comma between sendshortcut and the key/shortcut to send is for modifier keys, and the last argument/parameter (after the final comma) is the window. Therefore these will work in all windows in Hyprland.\n\nHere's an example with the modifiers, so I can effectively use Super + Shift + Left as Shift + Home and Super + Shift + Right as Shift + End:\n\nBut I couldn't for the life of me figure out how I could bind Super + Up and Super + Down to the Page Up and Page Down keys.\n\nThe Hyprland docs give the helpful note:\n\n> (i) Note\n> If you are unsure of what your key’s name or keycode is, you can use wev to find out.\n\nSo I installed wev, ran it, and hit my Page Up and Page Down keys and was presented with the following (amongst a bunch of other stuff that means nothing to me right now):\n\nThe _key_ part (pun intended!) being the sym: Prior and sym: Next. I admit, I've never seen Page Up referred to as Prior and Page Down referred to as Next, but here we are.\n\nThen it was just a matter of mapping those the same as the others:\n\nYou can view these and other keybind examples in my dotfiles.\n\nAnd here's the Hyprland docs for the dispatchers like sendshortcut.",
  "title": "Add keybinds or shortcuts for other keys in Hyprland"
}