;; NumpadAdventure keyboard ;; Exactly one defcfg entry is required. This is used for configuration key-pairs. ;; copied defcfg from ARTSEY example (defcfg ;; Your keyboard device will likely differ from this. linux-dev /dev/input/event1 ;; Windows doesn't need any input/output configuration entries; however, there ;; must still be a defcfg entry. You can keep the linux-dev entry or delete ;; it and leave it empty. ) (defsrc u i o p j k l ; spc h m , 9 8 n . ) (defalias start (layer-switch base)) (defalias arrows (layer-switch ARROW_LAYER)) (defalias ctrl (layer-switch CTRL_LAYER)) (defalias everything (macro C-a C-c right)) ;; copy everything (defalias bspc5 (macro bspc bspc bspc bspc bspc)) (defalias up5 (macro up up up up up)) (defalias down5 (macro down down down down down)) (defalias left5 (macro left left left left left)) (defalias right5 (macro right right right right)) (defalias a-key (tap-hold-press 20 500 a (layer-while-held A_LAYER))) (defalias t-key (tap-hold-press 20 500 t (layer-while-held T_LAYER))) (defalias i-key (tap-hold-press 20 500 i (layer-while-held I_LAYER))) (defalias l-key (tap-hold-press 20 500 l (layer-while-held L_LAYER))) (defalias r-key (tap-hold-press 20 500 r (layer-while-held R_LAYER))) (defalias n-key (tap-hold-press 20 500 n (layer-while-held N_LAYER))) (defalias o-key (tap-hold-press 20 500 o (layer-while-held O_LAYER))) (defalias e-key (tap-hold-press 20 500 e (layer-while-held E_LAYER))) (defalias spc-key (tap-hold-press 20 500 spc (layer-while-held SPC_LAYER))) (defalias sft-key (tap-hold-press 20 500 (one-shot 3000 lsft) (layer-while-held SFT_LAYER))) (deflayer base @a-key @t-key @i-key @l-key @r-key @n-key @o-key @e-key @spc-key @sft-key s d w h f y ) (deflayer R_LAYER pgup k c S-8 r u s rght caps _ s d w h f y ) (deflayer N_LAYER y = p x u n m d S-= - s d w h f y ) (deflayer O_LAYER w g S-3 S-4 s m o / S-[ S-] s d w h f y ) (deflayer E_LAYER up f [ ] left d \ e esc del s d w h f y ) (deflayer A_LAYER a v j q pgdn y w down S-` S-1 s d w h f y ) (deflayer T_LAYER v t b end k S-. g h S-9 S-0 s d w h f y ) (deflayer I_LAYER j b i ` c p S-6 @ctrl ' S-' s d w h f y ) (deflayer L_LAYER z home S-5 l S-, x S-7 S-\ 0 S-2 s d w h f y ) (deflayer SPC_LAYER tab @bspc5 bspc ret ; S-; , . spc S-/ s d w h f y ) (deflayer SFT_LAYER 5 6 7 8 1 2 3 4 9 lsft s d w h f y ) (deflayer CTRL_LAYER ;; shortcuts for ctrl combos C-a (multi C-f @start) C-x (multi C-l @start) C-r C-n C-o @everything @start @arrows C-c C-v C-z C-y C-left C-right ) (deflayer ARROW_LAYER home up end pgup left down right pgdn @start @ctrl home end @up5 @down5 C-left C-right )