6

I want to replace the keyboard shortcut for
⌥Option + d =
with
⌥Option + d = ð

How can I do that?

hiru
  • 313

2 Answers2

9

Create a plain text file with this in it (in TextEdit, use Format > Make Plain Text):

{
    "~d" = ("insertText:", "ð");
}

Call it DefaultKeyBinding.dict (make sure to uncheck “When no extension is provided, use .txt”), and save it in ~/Library/KeyBindings/. (You can press Command ⌘+Shift ⇧+G and paste that path.)

The "~d" means Option-D, and the ("insertText:", "ð") means it will insert a ð character instead of ∂.

You will have to restart your applications in order for this setting to take effect.

0942v8653
  • 7,412
3

Another solution is to create a custom keyboard layout. I can easily type symbols like , , , and with my custom layout.

Mathias Bynens
  • 11,642
  • 13
  • 66
  • 111