By Yatharth Agarwal


2015-08-14 20:49:47 8 Comments

I oft have to use a Windows keyboard with my Macbook. I have two different profiles in Karabiner, but I don't want to have to keep switching between them.

How can I have different profiles apply to different keyboards in Karabiner or using some other key remapping system?

Note: If this is technically difficult, perhaps because applications might not be able to distinguish which keyboard sent a particular keystroke, a solution that worked based on detecting if an external monitor is plugged in (using an AppleScript that interacted with Karabiner, maybe) would also be acceptable.

2 comments

@Tom Gewecke 2015-08-14 22:59:51

You can export the relevant settings from both profiles as XML, place them in private.xml, and then customize them by adding the appropriate tags as described here (found through this Google Groups discussion):

You can define settings which are effective on specific [sic] device only.
Add <device_only> or <device_not> to your <item>.

@Yatharth Agarwal 2015-08-15 07:31:54

If you only want to disable key-mapping for the internal keyboard for Apple keyboards, the GUI offers a simpler way that doesn't involve reimporting your profile and editing private.xml:

Internal External

@Arda 2017-09-06 22:01:37

Umm.. what am I seeing in this response? It's a semi-nsfw anime drawing and unavailable image chosen as a correct answer.

@Yatharth Agarwal 2017-09-08 10:29:59

@Arda A web filter may be interfering with your access to Imgur websites (I’ve encountered this exact issue in the past). Try using a VPN and reloading.

@Arda 2017-09-10 00:07:28

thanks! Indeed, that was the issue (Actually a userscript issue on my end, which thinks i.stack.imgur links are i.imgur ) . Anyways, your solution helped me. Thanks!

@rlpowell 2018-12-15 06:06:41

Karabiner no longer works on recent MacOS versions (everything since Sierra I think?). Do you know how to do this in Karabiner-Elements?

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] Different keyboard for different programs?

3 Answered Questions

[SOLVED] Mac OSX not automatically remapping windows key to cmd

2 Answered Questions

[SOLVED] How to change key bindings on MBP

1 Answered Questions

[SOLVED] How to remap a single key in Language Input

  • 2016-02-11 07:40:25
  • Phantomazi
  • 803 View
  • 0 Score
  • 1 Answer
  • Tags:   macos keyboard

1 Answered Questions

1 Answered Questions

1 Answered Questions

[SOLVED] Emacs key bindings on other programs

2 Answered Questions

[SOLVED] Kinesis Function Key Bindings

  • 2012-06-15 20:27:22
  • Opt
  • 2112 View
  • 4 Score
  • 2 Answer
  • Tags:   keyboard

Sponsored Content