Skip to content

Having multiple simlayer map definitions for a single key triggers the first one #129

Answered by evan-liu
kayg04 asked this question in Q&A
Discussion options

You must be logged in to vote
map('h', 'right_shift').to('left_arrow', 'left_option'),

This doesn't work with simlayer, which needs each key on the layer to be pressed together with the layer key.

If you want to have mappings more than that, you can use the layer condition variable instead:

  rule('More on navi layer').condition(ifVar('navi-layer')).manipulators([
    // Put it above `navi-layer` so Karabiner runs it instead of 
    // `right_shift` + `h` on the simlayer
    map('h', 'right_shift').to('left_arrow', 'left_option'),
  ]),

  simlayer('spacebar', 'navi-layer').manipulators([
    // map().to(), only one-key in map(), without modifiers
  ]),

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@kayg04
Comment options

Comment options

You must be logged in to vote
1 reply
@kayg04
Comment options

Answer selected by kayg04
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