We need both Powertoy and AHK to make it working fine, and align with macOS behaviors(mostly)
- Switch alt and win with powertoy
- Remap shortcut for override all apps with power toy
see here
; HHKB macOS feel (two-way PowerToys swap: Alt↔Win)
; ⌘ position → AHK sees ! | ⌥ position → AHK sees #
; 1. basic ⌘ combos
!c::Send "^c"
!v::Send "^v"
!x::Send "^x"
!a::Send "^a"
!s::Send "^s"
!z::Send "^z" ; undo
; 2. Ctrl-H/J/K/L arrows
^h::Send "{Left}"
^j::Send "{Down}"
^k::Send "{Up}"
^l::Send "{Right}"
; 3. ⌘-Q = close window
!q::Send "!{F4}"
for macOS, ref to https://note.siwei.info/my-hhkb-and-macos-setup/