Last active
February 20, 2025 19:26
-
-
Save knwng/b98b72232e98950eb0f9ef293b4ca55f to your computer and use it in GitHub Desktop.
HHKB keyboard mapping using AutoHotKey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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