2022-04-04 01:10:26 +02:00
|
|
|
(defcfg
|
|
|
|
;; For Linux
|
2022-04-05 19:42:32 +02:00
|
|
|
;; input (device-file "$DEVICE") ;; gets dynamically replaced by nix
|
|
|
|
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
|
2022-04-04 01:10:26 +02:00
|
|
|
output (uinput-sink "My KMonad output"
|
|
|
|
;; To understand the importance of the following line, see the section on
|
|
|
|
;; Compose-key sequences at the near-bottom of this file.
|
2022-04-05 19:42:32 +02:00
|
|
|
"/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap" -option compose:ralt")
|
2022-04-04 01:10:26 +02:00
|
|
|
cmp-seq ralt ;; Set the compose key to `RightAlt'
|
|
|
|
cmp-seq-delay 5 ;; 5ms delay between each compose-key sequence press
|
|
|
|
|
|
|
|
;; Comment this is you want unhandled events not to be emitted
|
|
|
|
fallthrough true
|
|
|
|
|
|
|
|
;; Set this to false to disable any command-execution in KMonad
|
|
|
|
allow-cmd false
|
|
|
|
)
|
|
|
|
|
|
|
|
#|
|
|
|
|
(deflayer qwerty
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _
|
|
|
|
)
|
|
|
|
|#
|
|
|
|
|
|
|
|
(defalias
|
|
|
|
ga #(ralt a h) ;; alpha
|
|
|
|
gb #(ralt b h) ;; beta
|
|
|
|
gg #(ralt g h) ;; gamma
|
|
|
|
ge #(ralt e h) ;; epsilon
|
|
|
|
gt #(ralt t h) ;; tau
|
|
|
|
gl #(ralt l h) ;; lambda
|
|
|
|
gm #(ralt m h) ;; miu
|
|
|
|
gp #(ralt p h) ;; pi
|
|
|
|
gx #(ralt x h) ;; xi
|
|
|
|
gs #(ralt s h) ;; sigma
|
|
|
|
go #(ralt o h) ;; omega
|
|
|
|
gu #(ralt u h) ;; uspilon
|
|
|
|
|
|
|
|
gph #(ralt l p h h) ;; phi
|
|
|
|
gth #(ralt l t h h) ;; theta
|
|
|
|
gps #(ralt l p s h) ;; psi
|
|
|
|
|
|
|
|
Gu #(ralt u j) ;; UPSILON
|
|
|
|
Gg #(ralt g j) ;; GAMMA
|
|
|
|
Gd #(ralt d j) ;; DELTAJ
|
|
|
|
Gp #(ralt p j) ;; PI
|
|
|
|
Gs #(ralt s j) ;; SIGMA
|
|
|
|
Go #(ralt o j) ;; OMEGA
|
|
|
|
Gx #(ralt x j) ;; XI
|
|
|
|
|
|
|
|
neg #(ralt l -) ;; ¬
|
|
|
|
fal #(ralt l v) ;; ∀
|
|
|
|
ex #(ralt l e) ;; ∃
|
|
|
|
lar #(ralt < -) ;; ←
|
|
|
|
rar #(ralt - >) ;; →
|
2022-04-05 19:42:32 +02:00
|
|
|
and #(ralt l c) ;; and symbol
|
|
|
|
or #(ralt l d) ;; or symbol
|
|
|
|
eq #(ralt e q) ;; Equivalence
|
2022-04-04 01:10:26 +02:00
|
|
|
|
|
|
|
alp #(ralt f \( ) ;; angled left parenthesis
|
|
|
|
arp #(ralt f \) ) ;; angled right parenthesis
|
|
|
|
|
|
|
|
shrugFace #(ralt l s h r) ;; shrug face
|
|
|
|
topBar #(ralt t -) ;; ¯
|
2022-04-05 19:42:32 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
;; layers
|
|
|
|
(defalias
|
|
|
|
mth (layer-toggle math)
|
|
|
|
Mth (layer-toggle capital-math)
|
|
|
|
mathExtra (layer-toggle math-extra)
|
|
|
|
)
|
2022-04-04 01:10:26 +02:00
|
|
|
|
2022-04-05 19:42:32 +02:00
|
|
|
;; more "special" stuff
|
|
|
|
(defalias
|
2022-04-04 01:10:26 +02:00
|
|
|
shr #(@topBar \ \_ \_ \( @shrugFace \) \_ / @topBar) ;; ¯\_(ツ)_/¯
|
2022-04-05 19:42:32 +02:00
|
|
|
|
|
|
|
ml (tap-hold-next-release 200 @gl @mathExtra)
|
|
|
|
mll l
|
2022-04-04 01:10:26 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
(defsrc
|
|
|
|
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del
|
|
|
|
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
|
|
|
tab q w e r t y u i o p [ ] \
|
|
|
|
caps a s d f g h j k l ; ' ret
|
|
|
|
lsft z x c v b n m , . / rsft
|
|
|
|
lctl lsgt lmet lalt spc ralt rctl
|
|
|
|
)
|
|
|
|
|
|
|
|
(deflayer qwerty
|
|
|
|
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del
|
|
|
|
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
|
|
|
tab q w e r t y u i o p [ ] \
|
|
|
|
@mth a s d f g h j k l ; ' ret
|
|
|
|
lsft z x c v b n m , . / rsft
|
|
|
|
lctl lsgt lmet lalt spc ralt rctl
|
|
|
|
)
|
|
|
|
|
|
|
|
(deflayer math
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ @ex _ _ _ _ _ @alp @arp @neg _ _
|
|
|
|
_ @shr @go @ge _ @gt _ @gu _ @go @gp _ _ _
|
2022-04-05 19:42:32 +02:00
|
|
|
_ @ga @gs _ _ @gg @gth @gps @gph @ml _ _ _
|
2022-04-04 01:10:26 +02:00
|
|
|
@Mth _ @gx _ @fal @gb _ @gm @lar @rar _ _
|
2022-04-05 19:42:32 +02:00
|
|
|
_ _ _ _ @mathExtra _ _
|
|
|
|
)
|
|
|
|
|
|
|
|
(deflayer math-extra
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ @eq _ _ _ _ _ @or _ _ _ _
|
|
|
|
_ @and _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _
|
2022-04-04 01:10:26 +02:00
|
|
|
_ _ _ _ _ _ _
|
|
|
|
)
|
|
|
|
|
|
|
|
(deflayer capital-math
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _ @Gu _ @Go @Gp _ _ _
|
|
|
|
_ _ @Gs @Gd _ @Gg _ _ _ _ _ _ _
|
|
|
|
_ _ @Gx _ _ _ _ _ _ _ _ _
|
|
|
|
_ _ _ _ _ _ _
|
|
|
|
)
|
|
|
|
|