Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device specific rules and misc issues #237

Open
michaelssingh opened this issue Nov 5, 2023 · 1 comment
Open

device specific rules and misc issues #237

michaelssingh opened this issue Nov 5, 2023 · 1 comment

Comments

@michaelssingh
Copy link

I hope that these sorts of issues are not frowned upon in the community. I have asked on the Karabiner telegram but it appears that people aren't quite expecting questions in which the configuration language is EDN.

I have the following rule and I am not quite sure why it isn't working, this rule is not being applied to my keyboard

{:des   "Swap Win and Alt on Thinkpad Trackpoint Keybaord"
         :rules [:tpkb
                 [:left_option  :left_command]
                 [:left_command :left_option]
                 [:right_option :right_command]
                 [:print_screen :left_option]]}
:devices {:tpkb     [{:product_id 6127 :vendor_id 24801}]
           :internal [{:product_id 1452 :vendor_id 833}]}

I also have another rule that I am not sure why it isn't working either

{:des   "Spacebar -> Option if held, otherwise spacebar"
         :rules [[:##spacebar :left_option     :held {:alone :spacebar}]]}

I hope someone is able to spot something because I haven't been able to figure them out for a few months now

@jannis-baum
Copy link

I replied to you on Telegram; the part about mapping space to option when held should work like this:

[:##spacebar :left_option nil {:alone [:spacebar]}]

As far as I know, your :held is not a valid condition. Instead, we do it the other way around and map space to option on the condition nil, i.e. always, and then map it back to space when it is pressed alone.


I'm not sure what's the issue with your device-related configuration, but I found this example config in the in-the-wild.md file where someone uses device conditions as well, maybe that helps :)


In general I find these examples and the Telegram group to be the best shot at figuring stuff out. I think most people use Goku in the group so feel free to ask stuff there. People are usually very helpful there as long as the person asking is friendly, makes an effort to find an answer themselves, and the questions don't turn into spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants