pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.54k stars 834 forks source link

Any way to temporarily switch to Greek (for example) while some modifier key is pressed down? #3779

Open mdaeron opened 4 months ago

mdaeron commented 4 months ago

I write science texts with many isolated Greek letters, like this: δ13C. It's really slow to switch to Greek (even using a single keypress shortcut), type the letter, switch back to English (or forget switching back and type out garbled text).

I'm looking for a way to enable the following behavior: when I type the d key, output d, unless left-option is already pressed down, in which case output δ.

Is that behavior possible using Karabiner?

kg-currenxie commented 4 months ago

Not quite an answer, but that should be possible with this https://github.com/koekeishiya/skhd

mdaeron commented 4 months ago

Not quite an answer, but that should be possible with this https://github.com/koekeishiya/skhd

Thanks, that looks super powerful! But the docs are a little cryptic. When I specify alt - d : "δ" I get an error message, and with alt - d : echo "δ" the δ output is not sent to the text window I'm working in. I must be missing how to simply output the modified letter. Could you please point me some examples, if you know any? Thanks again.

kg-currenxie commented 4 months ago

I have not used it much myself :) It should also not be discussed in this repo. Create an issue over there if you need help

mdaeron commented 4 months ago

I have not used it much myself :) It should also not be discussed in this repo. Create an issue over there if you need help

You're right. Thanks again.