Skip to content

Instantly share code, notes, and snippets.

@knwng
Last active February 20, 2025 19:26
Show Gist options
  • Save knwng/b98b72232e98950eb0f9ef293b4ca55f to your computer and use it in GitHub Desktop.
Save knwng/b98b72232e98950eb0f9ef293b4ca55f to your computer and use it in GitHub Desktop.
HHKB keyboard mapping using AutoHotKey
#Requires AutoHotkey v2.0
; Switch between tabs
^!Right::SendInput '^{PgDn}'
^!Left::SendInput '^{PgUp}'
; Jump a word
!Left::SendInput '^{Left}'
!Right::SendInput '^{Right}'
; Delete a word
!Backspace::SendInput '^{Backspace}'
; Switch between virtual desktops
^Left::SendInput '#^{Left}'
^Right::SendInput '#^{Right}'
; Fix Win -> Ctrl mapping
LWin::
Send '{LCtrl Down}'
KeyWait 'LWin'
Send '{LCtrl Up}'
return
; Reset Ctrl/Win if stuck
CapsLock::
Send '{Ctrl Up}'
Send '{LWin Up}'
Send '{Alt Up}'
Send '{Shift Up}'
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment