Karabiner-elements: feature request: auto switch profile

Created on 15 Mar 2017  路  12Comments  路  Source: pqrs-org/Karabiner-Elements

feature description:

hope to switch to a profile when you plug in a specified keyboard, and switch back to another profile when you pull out it.

why should add this feature:

most external keyboard is for PCs, which has different keyboard layout from apple's keyboard. It's likely that users may remap some keys in external keyboard (and save the modification in a profile) to make them suitable for macOS while keep the internal keyboard unchanged (another profile without these remap modification). So it would be very convenient if karabiner-elements can auto switch the profile based on if the external keyboard is plugged in.

stale

Most helpful comment

My workaround is to use Hammerspoon's hs.usb.watcher and call K-E's CLI to switch between profiles when an external keyboard is attached or detached.

All 12 comments

Seconding this!

It is great to have profile in the latest version! I'd love to have auto switch too!

Even better is to have different profiles apply to different keyboards you specify and avoid doing any switching altogether if that is possible

This would be very nice.

+1 Much need feature. There should be keyboard specific profiles. Every time I use my Macbook's keyboard I have to manually switch profiles because the external one needed remapping.

My workaround is to use Hammerspoon's hs.usb.watcher and call K-E's CLI to switch between profiles when an external keyboard is attached or detached.

Nice workaround, it solves my problem completely because I'm already using Hammerspoon for Hyper key shortcuts. Thanks!

I am using Karabiner-Elements now and it does not have anymore a command line utility to switch profile.

If you are interested, combining this to hammerspoon is quite easy.

It is a quick and dirty python hack: https://gist.github.com/crisidev/35b214c660ead41e036ec8a9c7e29cc1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Is there any way to do this now? Karabiner Elements has come a long way.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

There's also autokbisw but I'd really rather only use one tool. 馃槃

Was this page helpful?
0 / 5 - 0 ratings