Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output keypresses but using a different input source (language) #347

Open
mdaeron opened this issue Apr 12, 2024 · 0 comments
Open

Output keypresses but using a different input source (language) #347

mdaeron opened this issue Apr 12, 2024 · 0 comments

Comments

@mdaeron
Copy link

mdaeron commented Apr 12, 2024

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 δ.

I tried the following config: alt - d : skhd --key z. That does replace alt - d by z. Happy so far. But how can I output δ instead of z? I guess I need to switch input sources in shell, but I'm not sure how to do that. Is there an obvious solution I'm missing, or is it just a matter of hunting down a good way to switch inputs from the command-line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant