Compare commits

...

4 Commits

Author SHA1 Message Date
Matthieu Dubuget
5b57d66a2d Essai dead key sur « ' » 2025-05-11 07:10:42 +02:00
Matthieu Dubuget
0e667cd428 Some more shortcuts 2025-05-11 05:24:56 +02:00
Matthieu Dubuget
be9f1af630 Renommage des tâches. 2025-05-11 04:56:04 +02:00
Matthieu Dubuget
f9b94a4323 Expérimentations hasardeuses 2025-05-10 18:36:23 +02:00

93
mdt.kbd
View File

@ -1,5 +1,8 @@
;; Basic home row mods example using QWERTY ;; Matt's config
;; And approximation for a numeric keypad ;;
;; Meant to work with a BÉPO layout: officially available both on Linux and
;; Windows® and gives access to enough characters for my own use, and beyond.
(defcfg (defcfg
process-unmapped-keys yes process-unmapped-keys yes
@ -9,21 +12,31 @@
(defvar tap-time 300 hold-time 300) (defvar tap-time 300 hold-time 300)
;; TODO:
;; - advanced home row mode,
;; - finish the ' dead key,
(defalias (defalias
w (tap-hold $tap-time $hold-time w ralt) m apo
o (tap-hold $tap-time $hold-time o ralt) z 【
w 】
ç \
fn (tap-hold $tap-time $hold-time ␣ (layer-while-held fn))
é (tap-hold $tap-time $hold-time @m ralt)
l (tap-hold $tap-time $hold-time o ralt)
a (tap-hold $tap-time $hold-time a lmet) a (tap-hold $tap-time $hold-time a lmet)
s (tap-hold $tap-time $hold-time s lalt) u (tap-hold $tap-time $hold-time s lalt)
d (tap-hold $tap-time $hold-time d lctl) i (tap-hold $tap-time $hold-time d lctl)
f (tap-hold $tap-time $hold-time f lsft) e (tap-hold $tap-time $hold-time f lsft)
j (tap-hold $tap-time $hold-time j rsft) t (tap-hold $tap-time $hold-time j rsft)
k (tap-hold $tap-time $hold-time k rctl) s (tap-hold $tap-time $hold-time k rctl)
l (tap-hold $tap-time $hold-time l lalt) r (tap-hold $tap-time $hold-time l lalt)
; (tap-hold $tap-time $hold-time ; lmet) n (tap-hold $tap-time $hold-time ; lmet)
c (tap-hold $tap-time $hold-time c (layer-while-held numeric)) x (tap-hold $tap-time $hold-time c (layer-while-held numeric))
, (tap-hold $tap-time $hold-time , (layer-while-held numeric)) g (tap-hold $tap-time $hold-time , (layer-while-held numeric))
v (tap-hold $tap-time $hold-time v (layer-while-held symbol)) . (tap-hold $tap-time $hold-time v (layer-while-held symbol))
m (tap-hold $tap-time $hold-time m (layer-while-held symbol)) q (tap-hold $tap-time $hold-time m (layer-while-held symbol))
^ RA-6 ^ RA-6
< RA-2 < RA-2
> RA-3 > RA-3
@ -41,37 +54,69 @@
! S-y ! S-y
: S-v : S-v
? S-n ? S-n
⎙ prnt
' (macro sldr 10 n)
) )
(defsrc (defsrc
q w e r t y u i o p q w e r t y u i o p
⇪ a s d f g h j k l ; ⇪ a s d f g h j k l ;
102d z x c v b n m , . / 102d z x c v b n m , . /
‹⌥ ‹⌥ ␣ ⌥›
) )
(deflayer (base 🖻 kanata-icon.svg) (deflayer (base 🖻 kanata-icon.svg)
_ @w _ _ _ _ _ _ @o _ _ @é _ _ @w @z _ _ @l _
_ @a @s @d @f _ _ @j @k @l @; _ @a @u @i @e _ _ @t @s @r @n
z x @c @v b 102d _ @m @, _ _ z x @x @. b 102d @' @q @g _ _
@fn ⏎
) )
(deflayer (numeric 🖻 numeric.png) (deflayer (numeric 🖻 numeric.png)
⭾ ↖ ▲ ↘ ⇞ kp/ kp7 kp8 kp9 kp* ⭾ ↖ ▲ ↘ ⇞ kp/ kp7 kp8 kp9 kp*
⎋ ⇪ ◀ ▼ ▶ ⇟ kp- kp4 kp5 kp6 kp0 ⎋ ⇪ ◀ ▼ ▶ ⇟ kp- kp4 kp5 kp6 kp0
2 3 f11 f12 ⌫ _ kp. kp1 kp2 kp3 v 2 3 _ _ _ _ kp. kp1 kp2 kp3 v
_ _ _ _
) )
(deflayer symbol (deflayer symbol
@^ @< @> @$ = 6 @& 0 n S-= @^ @< @> @$ = 6 @& 0 n S-=
_ @{ 4 5 @} - @\ 7 8 9 1 _ @{ 4 5 @} - @\ 7 8 9 1
@~ @[ @] @_ @# _ @| @! S-g @: @? @~ @[ @] @_ @# _ @| @! S-g @: @?
_ _ _ _
) )
;; ⇪ ⎋ ‹⇧ ⇧› ‹⌥ ⌫ ▶ ▼ ▲ ◀ (deflayer fn
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10
_ ⭾ ⎋ ⎀ _ @⎙ _ @m @z @w @ç
_ _ f11 f12 _ _ _ _ _ _ _
⌦ _ ⎋
)
(deffakekeys
è t È S-t
ê (macro y 10 f) Ê (macro y 10 S-f)
é w É S-w
à z À S-z
â (macro y 10 a) Â (macro y 10 S-a)
ù RA-s Ù S-RA-s
ç \ Ç S-\
ß RA-k ẞ RA-S-k
quote (macro n))
(defseq
è (n f) È (n S-f)
é (n d) É (n S-d)
ê (n g) Ê (n S-g)
à (n a) À (n S-a)
â (n q) Â (n S-q)
ù (n s) Ù (n S-s)
ç (n h) Ç (n S-h)
ß (n k) ẞ (n S-k)
quote (n ␣))
;; ⇪ ⎋ ‹⇧ ⇧› ‹⌥ ⌥› ⌫ ⌦ ▶ ▼ ▲ ◀ 【 】 ⎀ ⎙
;; https://dev.to/shanu-kumawat/how-to-set-up-kanata-on-nixos-a-step-by-step-guide-1jk#roc ;; https://dev.to/shanu-kumawat/how-to-set-up-kanata-on-nixos-a-step-by-step-guide-1jk#roc
;; https://github.com/jtroo/kanata/blob/main/parser/src/keys/mod.rs ;; https://github.com/jtroo/kanata/blob/main/parser/src/keys/mod.rs