3

I am forced to use MacBook Pro 2018. I am located in a German-speaking country, so the autodetected (or pre-installed?) keyboard layout was German.

I work as an English-speaking programmer, so I need e.g. the tilde ~. I have added the US keyboard layout. But for some reason, on a Mac, that is next to Shift. The button on the laptop's keyboard, where ~ normally is, on Mac it writes §.

How can I set a US keyboard on a Mac with a layout that can be found in Linux?

Enter image description here Source

  • It depends whether you have a physical ANSI or ISO keyboard. Could you post a picture of it? [Basically on ANSI it's below Esc, on ISO it's between shift & Z (or Y on qwertz)] – Tetsujin Jul 28 at 11:33
  • Hmm... sorry, it seems much harder to do on qwertz ISO & I can't test ansi. – Tetsujin Jul 28 at 11:39
  • Please focus on one problem at a time. Once the tilde issue is resolved, you can either use the answer you got to solve other keys yourself, or ask a second question for this. – nohillside Jul 28 at 16:11
  • Also, if the answer below recommending Karabiner/Ukulele doesn't help please be more specific about what you have tried and where you are stuck. It might then also be helpful to see a picture of your physical keypboard layout and an indication on the place you expect the tilde to be (layouts are flexible, also under Linux, so just saying "as in Linux" isn't specific enough). – nohillside Jul 28 at 16:13
  • @nohillside I worked with about 10 distributions and all had the same main US keyboard layout. But if it helps: 1 2 – Ondra Žižka Jul 28 at 16:29
4

Having tilde next to the left shift is normal for Apple ISO (European) English keyboards. If you want to put it somewhere else, you will have to use an app like Karabiner or Ukelele to customize the layout.

If using an external keyboard is acceptable, you could try to get an ANSI (US) keyboard (with no key between z and shift) someplace. It will have the tilde below ESC.

Do not use the layout called "US International PC", since it treats tilde as a dead key for making accented characters, and requires extra steps to create an ASCII tilde.

Here is a custom US layout that should put tilde under escape.

  • Ok let's assume I can get used to having ~ key elsewhere. But even that key writes some different character - it seems like a superscript tilde. How can I write the ASCII ~ character? – Ondra Žižka Jul 29 at 9:19
  • @OndraŽižka What input source are you using where that happens? US and the custom one I made produce ASCII tilde. If you using the one called US International PC, then switch to US, or type a space after the "superscript" tilde. – Tom Gewecke Jul 29 at 10:38
  • TBH, I don't know what input source do I use. It's all what came with the Mac, and it's a new one from a box. The only thing I changed so far was setting the layout in the settings to US PC. – Ondra Žižka Jul 29 at 11:47
  • @OndraŽižka Get rid of "US PC". Make sure the ONLY item in System Preferences/Keyboard/Input Sources has the name "US" or "ABC". – Tom Gewecke Jul 29 at 11:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .