Skip to content

Instantly share code, notes, and snippets.

@harai harai/.mayu
Created Jun 28, 2013

Embed
What would you like to do?
mayu for linux Dvorak on MacBook key binding
include "109.mayu"
# mac key def
def key MacEisuu = 0x7b
def key MacKana = 0x7a
# Dvorak1
def subst *Minus = *Atmark
def subst *CircumflexAccent = *LeftSquareBracket
# Dvorak2
def subst *Q = *Colon
def subst *W = *Comma
def subst *E = *Period
def subst *R = *P
def subst *T = *Y
def subst *Y = *F
def subst *U = *G
def subst *I = *C
def subst *O = *R
def subst *P = *L
def subst *Atmark = *Slash
def subst *LeftSquareBracket = *CircumflexAccent
# Dvorak3
def subst *A = *A
def subst *S = *O
def subst *D = *E
def subst *F = *U
def subst *G = *I
def subst *H = *D
def subst *J = *H
def subst *K = *T
def subst *L = *N
def subst *Semicolon = *S
def subst *Colon = *Minus
# Dvorak4
def subst *Z = *Semicolon
def subst *X = *Q
def subst *C = *J
def subst *V = *K
def subst *B = *X
def subst *N = *B
def subst *M = *M
def subst *Comma = *W
def subst *Period = *V
def subst *Slash = *Z
keymap Global
# CapsLock <-> Left Ctrl
mod control += Eisuu
mod control -= LControl
key *Eisuu = *LControl
key *LControl = *Eisuu
# Left Win <-> Left Alt
mod windows += LAlt
mod windows -= LWindows
mod alt += LWindows
mod alt -= LAlt
key *LAlt = *LWindows
key *LWindows = *LAlt
key *LControl = *Home
key *MacEisuu = *BackSpace
key *NumEnter = *End
key *MacKana = *HankakuZenkaku
key *BackSpace = *Delete
# arrow keys
key A-C = Up
key A-N = Right
key A-T = Down
key A-H = Left
key A-C-C = C-Up
key A-C-N = C-Right
key A-C-T = C-Down
key A-C-H = C-Left
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.