logo
build-your-own.org
 |  BOOK BLOG
🔔 SUBSCRIBE
build-your-own.org

Coding Keyboard Layout

build-your-own.org

2023-03-10

Add another layer by repurposing the CapsLock key.

Rationale

  1. Too many hard-to-reach symbols crammed on the right pinky.
  2. Cursor movement without moving your hand.

AutoHotKey

; toggle capslock via alt+capslock
SetCapsLockState, AlwaysOff

CapsLock & Tab::
    If GetKeyState("CapsLock", "T") {
        SetCapsLockState, AlwaysOff
    } else {
        SetCapsLockState, AlwaysOn
    }
Return

; backspace and delete
CapsLock & u::
    Send {Blind}{Backspace}
Return
CapsLock & o::
    Send {Blind}{Delete}
Return

; arrows
CapsLock & i::
    Send {Blind}{Up}
Return
CapsLock & k::
    Send {Blind}{Down}
Return
CapsLock & j::
    Send {Blind}{Left}
Return
CapsLock & l::
    Send {Blind}{Right}
Return

; Home & End
CapsLock & ,::
    Send {Blind}{Home}
Return
CapsLock & /::
    Send {Blind}{End}
Return

; Page Up/Down
CapsLock & q::
    Send {Blind}{PgUp}
Return
CapsLock & w::
    Send {Blind}{PgDn}
Return

; ->
CapsLock & .::
    Send {Blind}->
Return

; ()
CapsLock & f::
    Send {Blind}(
Return
CapsLock & g::
    Send {Blind})
Return

; {}
CapsLock & n::
    Send {Blind}{{}
Return
CapsLock & m::
    Send {Blind}{}}
Return

; []
CapsLock & s::
    Send {Blind}{[}
Return
CapsLock & d::
    Send {Blind}{]}
Return

; +-
CapsLock & e::
    Send {Blind}{+}
Return
CapsLock & r::
    Send {Blind}{-}
Return

; =
CapsLock & `;::
    Send {Blind}=
Return

; _
CapsLock & -::
    Send {Blind}{_}
Return
CapsLock & h::
    Send {Blind}{_}
Return

; 0
CapsLock & p::
    Send {Blind}{0}
Return

; |\
CapsLock & c::
    Send {Blind}{|}
Return
CapsLock & v::
    Send {Blind}{\}
Return

; ^
CapsLock & 6::
    Send {Blind}{^}
Return
; &
CapsLock & 7::
    Send {Blind}{&}
Return
; *
CapsLock & 8::
    Send {Blind}{*}
Return

Welcome to build-your-own.org.

A website for free educational software development materials.

[🔔Subscribe]

for updates and new books.


Build Your Own X From Scratch Book Series:


Build Your Own Redis
Build Your Own Database
Build Your Own Compiler
Build Your Own Webserver