Callum-style/chorded layer switching? #1358
-
I've decided to try a callum style keymap, but that means I need to implement some kind of chorded layer system. In essence, holding one key ( There are 4 possible input combinations I've tested so far: Case 1: Case 2: Case 3: Case 4: Basically, I want each keys' layer to activate instantly and switch to the number layer and back when adding or removing the other. I was wondering if I can get the behavior I want with the tools we have now. I've included the configs I've tried so far, but I haven't been able to get case 4 to work at all. ;; chord approach
;; works for cases 1 & 2
(deflayer colemak
@lme @rme
)
(defalias
sym (layer-while-held symbols)
nav (layer-while-held navigation)
num (layer-while-held number)
lme (multi @nav (chord layers l))
rme (multi @sym (chord layers r))
)
(defchords layers 5000
(l ) @nav
( r) @sym
(l r) @num
) ;; switch approach
;; works for cases 1, 2, & 3
(deflayer colemak
@lme @rme
)
(defalias
sym (layer-while-held symbols)
nav (layer-while-held navigation)
num (layer-while-held number)
lme (switch
((layer symbols)) @num break
() @nav fallthrough
)
rme (switch
((layer navigation)) @num break
() @sym fallthrough
)
) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Here's something that might work: Simulator link
|
Beta Was this translation helpful? Give feedback.
Here's something that might work: Simulator link