Associating actions between layers #1587
-
I understand one could simply compose all possible actions for a given key directly in the base layer at once, but distributing them across layers is better as it improves readability and maintainability. Unfortunately it seems that this approach limits us to using layer switchers, chords, etc since there’s no way to reference the corresponding action from another layer dynamically to feed then to tap-hold and tap-dance variants. Is there a way to ‘fetch’ the action for the same key position from a different layer? Example for context:
I naively attempted to activate the symbols layer followed by a transparent key, but it isn't meant to be used that way. Would appreciate any insights or possible workarounds. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I'd love to have If there were a P.S. @jtroo Why do variables not work in defsrc? |
Beta Was this translation helpful? Give feedback.
-
´(unmod _ )´ ´(unshift _ )´ also don't allow transparent keys. Is this the same problem as with |
Beta Was this translation helpful? Give feedback.
I really missed transparent keys are meanwhile layer aware
** layer-while-held workaround (working)**
Stack both layers on top op each other
(multi (layer-while-held symbols) (layer-while-held numbers) )
now in numbers layer you can use
(tap-hold 200 200 1 _ )
where_
represents the action on the symbols layer (tested)** layer-switch / base layer workaround (untested)**
since you can't use
layer-switch
anymore you must emulate it with virtual keys(defvirtualkey switch_base (multi (layer-while-held symbols) (layer-while-held base)) )
This workaround is only able to pull from one layer
I can't use this myself because it messes with
on-idle
state.** workaround with late layer activation (…