• [^] # Re: "Home row mods"

    Posté par (Mastodon) . En réponse au journal "Maj puis Ctrl" pour changer de fenêtre. Évalué à 2.

    Oui, kanata (pas katana) peut carrément répondre à ton besoin.

    Voici ma config :

    (defcfg
     process-unmapped-keys (all-except lctl ralt)
     )
    (defvar
     tap-time 200
     hold-time 200
     )
     (defalias
     num (tap-hold 200 200 esc (layer-toggle numpad))
     pairs (tap-hold 200 200 IntlBackslash (layer-toggle pairs))
     a (tap-hold $tap-time $tap-time a (layer-toggle arrows))
     lp (unicode "(")
     rp (unicode ")")
     lr (unicode "{")
     rr (unicode "}")
     ls (unicode "[")
     rs (unicode "]")
     quo 1
     dot (unicode ".")
     com (unicode ",")
     das (unicode "-")
     plu (unicode "+")
     moi (unicode "-")
     mul (unicode "*")
     ;; Homerow mods
     q (tap-hold $tap-time $hold-time q lmet)
     s (tap-hold $tap-time $hold-time s lalt)
     d (tap-hold $tap-time $hold-time d lsft)
     f (tap-hold $tap-time $hold-time f lctl)
     j (tap-hold $tap-time $hold-time j rctl)
     k (tap-hold $tap-time $hold-time k rsft)
     l (tap-hold $tap-time $hold-time l ralt)
     m (tap-hold $tap-time $hold-time m rmet)
     )
     (deflocalkeys-win
     : 191
     ! 223
     )
     (defsrc
     esc 1 2 3 4 5 6 7 8 9 0 - = bspc
     tab a z e r t y u i o p [ ] ret 
     caps q s d f g h j k l m ' \ 
     lsft IntlBackslash w x c v b n , ; Period Slash rsft
     spc
     )
     (deflayer base
     esc 1 2 3 4 5 6 7 8 9 0 - = bspc
     tab @a z e r t y u i o p [ ] ret 
     @num @q @s @d @f g h @j @k @l @m ' \
     lsft @pairs w x c v b n , ; Period Slash rsft
     spc
     )
     (deflayer numpad
     _ _ _ _ _ _ _ _ _ _ _ _ _ _
     _ _ _ _ _ _ @dot Numpad1 Numpad2 Numpad3 @plu _ _ _ 
     @num _ _ _ _ _ @com Numpad4 Numpad5 Numpad6 @moi _ _ 
     _ _ _ _ _ _ _ _ Numpad7 Numpad8 Numpad9 @mul _
     Numpad0 
     )
     (deflayer pairs
     _ _ _ _ _ _ _ _ _ _ _ _ _ _
     _ _ _ _ _ _ _ @lr @rr _ _ _ _ _ 
     _ _ _ _ _ _ _ @lp @rp _ _ _ _ 
     _ @pairs _ _ _ _ _ _ @ls @rs _ _ _
     _
     )
     (deflayer arrows
     _ _ _ _ _ _ _ _ _ _ _ _ _ _
     _ @a _ _ _ _ _ _ _ _ _ _ _ _ 
     _ _ _ _ _ _ ArrowLeft ArrowDown ArrowUp ArrowRight _ _ _ 
     _ _ _ _ _ _ _ _ _ _ _ _ _
     _
     )
    

    J'ai un layer qui émule un numpad, accessible quand je garde Caps Lock appuyé.