Skip to content

Callum-style/chorded layer switching? #1358

Answered by jtroo
bustinbung asked this question in Q&A
Discussion options

You must be logged in to vote

Here's something that might work: Simulator link

(defsrc a lmet rmet)
(deflayer base
  1 @lme @rme)
(deflayer numbers
  2 @lme @rme)
(deflayer navigation
  3 @lme @rme)
(deflayer symbols
  4 @lme @rme)

(defvirtualkeys
  callum (switch
    ((and nop1 nop2)) (layer-while-held numbers) break
    (nop1) (layer-while-held navigation) break
    (nop2) (layer-while-held symbols) break)
  activate-callum (switch
    ((or nop1 nop2)) 
     (multi (on-press release-vkey callum) (on-press press-vkey callum))
     break
    () (on-press release-vkey callum) break))

(defalias
  lme (multi nop1 
             (on-press tap-vkey activate-callum)
             (on-release tap-vkey activate-callum))
  rme…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@jtroo
Comment options

@bustinbung
Comment options

@jtroo
Comment options

@bustinbung
Comment options

@bustinbung
Comment options

Answer selected by bustinbung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants