Skip to content

Instantly share code, notes, and snippets.

@haydnhkim
Created February 6, 2020 03:54
Show Gist options
  • Save haydnhkim/b427d09d160378136e5c2563d6e47bb7 to your computer and use it in GitHub Desktop.
Save haydnhkim/b427d09d160378136e5c2563d6e47bb7 to your computer and use it in GitHub Desktop.
macOS-like HHKB(happy hacking) key mapping for windows
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
; ! Alt
; ^ Control
; + Shift
; # Win
; RCtrl 한자키로 사용하기
RWin::Send {vk19sc1F1}
; 한영전환
^Space::Send {vk15sc138}
; 방향키 text
; command left/right => Home/End
!Left::Send {Home}
!Right::Send {End}
; command shift left/right => 라인 블록 선택 Home/End
+!Left::Send +{Home}
+!Right::Send +{End}
; command up/down => PgUp/PgDn
!Up::Send {PgUp}
!Down::Send {PgDn}
; command shift up/down => 라인 블록 선택 PgUp/PgDn
+!Up::Send +{PgUp}
+!Down::Send +{PgDn}
; 단어 단위 이동
#Left::Send ^{Left}
#Right::Send ^{Right}
; 단어 단위 이동 블록 선택
#+Left::Send +^{Left}
#+Right::Send +^{Right}
; 줄바꿈
#Up::Send !{Up}
#Down::Send !{Down}
; alt -> command 매핑
!0::Send ^0
!1::Send ^1
!2::Send ^2
!3::Send ^3
!4::Send ^4
!5::Send ^5
!6::Send ^6
!7::Send ^7
!8::Send ^8
!9::Send ^9
!a::Send ^a
!b::Send ^b
!c::Send ^c
!d::Send ^d
!e::Send ^e
!f::Send ^f
!g::Send ^g
!h::Send ^h
!i::Send ^i
!j::Send ^j
!k::Send ^k
!l::Send ^l
!m::Send ^m
!n::Send ^n
!o::Send ^o
!p::Send ^p
!q::Send ^q
!r::Send ^r
!s::Send ^s
!t::Send ^t
!u::Send ^u
!v::Send ^v
!w::Send ^w
!x::Send ^x
!y::Send ^y
!z::Send ^z
; alt + shift -> command + shift 매핑
!+a::Send ^+a
!+b::Send ^+b
!+c::Send ^+c
!+d::Send ^+d
!+e::Send ^+e
!+f::Send ^+f
!+g::Send ^+g
!+h::Send ^+h
!+i::Send ^+i
!+j::Send ^+j
!+k::Send ^+k
!+l::Send ^+l
!+m::Send ^+m
!+n::Send ^+n
!+o::Send ^+o
!+p::Send ^+p
!+q::Send ^+q
!+r::Send ^+r
!+s::Send ^+s
!+t::Send ^+t
!+u::Send ^+u
!+v::Send ^+v
!+w::Send ^+w
!+x::Send ^+x
!+y::Send ^+y
!+z::Send ^+z
!/::Send ^/
!Backspace::Send {Home}{ShiftDown}{End}{ShiftUp}{Delete}
; 윈도우키 단독 막기
;LWin::return
; command click
!LButton::Send ^{Click}
; 창 크기 조정, 이동
#!Up::Send #{Up}
#!Down::Send #{Down}
#!Left::Send #{Left}
#!Right::Send #{Right}
; for chrome, windows terminal, fork
#if WinActive("ahk_exe chrome.exe")
or WinActive("ahk_exe WindowsTerminal.exe")
or WinActive("ahk_exe Fork.exe")
; tab 이동
+![::Send +^{Tab}
+!]::Send ^{Tab}
return
#if
; for vscode
#if WinActive("ahk_exe Code.exe")
; tab 이동
+![::Send ^{PgUp}
+!]::Send ^{PgDn}
return
#if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment