Skip to content

How to use a keyboard shortcut as a layer toggle switch? #1451

Answered by RodsonMatos
bommbo asked this question in Q&A
Discussion options

You must be logged in to vote

This is how I use

;; define layer switch to base, qwerty, and nerps
(defalias
  comp (layer-while-held changer)
  1 (layer-switch base)
  2 (layer-switch qwerty)
  n (layer-switch nerps)
)

(deflayer changer
  _
  _    @1 @2   _    _    _    _    _    _    _    _    _    _    _
  _    _   _   _    _    _    _    _    _    _    _    _    _
  _    _   _   _    _    _    _    _    _    _    _    _    _
  _    _   _   _    _    _    _    @n   _    _    _    _    _
  _    _       _              _              _    @comp    _
)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bommbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants