yqrashawn / GokuRakuJoudo

config karabiner with ease
GNU General Public License v3.0
1.14k stars 121 forks source link

Tab to activate layer + left_command #160

Open franciscolourenco opened 2 years ago

franciscolourenco commented 2 years ago

I'm trying to configure the tab key to, when pressed down, enable a layer called tabmode, and at the same time work as a command key. Is this possible?

This is what I have but it doesn't seem to be working:

[:tab [:left_command {:set ["tabmode" 1]}] nil {:afterup ["tabmode" 0] :alone :tab}]

Thanks!


Edit: :held seems to do what I'm looking for, but it only activates after the key has been held for a certain amount of time, I would like it to be instantaneous.

[:tab ["tabmode" 1] nil {:afterup ["tabmode" 0], :alone :tab, :held :left_command}]
yqrashawn commented 1 year ago

Try this [:tab [["tab-mode" 1] :left_command] nil {:afterup ["tab-mode" 0] :alone :tab}]