no more need to manually change the language when switching between apps, or re-write mistyped text!
this repo will automatically change the keyboard input language based on the specific app preferences, and fix mistypes.
- ment to work if you have 2 languages set on your Mac (the swap is equivalent to '^ + space').
- in the 'run.command' change the folliwing:
-
change the absolute path for the 'language_switcher.py'.
-
optional: the fix activation sequance (default '000').
- Change the language preferences in the 'language_config.json' file for each app to suit your needs.
- create an 'conversion_chart_<MAIN_LAYOUT>_<SECONDARY_LAYOUT>.json' in the same format for your language (its a somewhat manual process, you can use chatGPT to speef it up). in this repo, MAIN_LAYOUT='ABC' (thats the layout name for English) and SECONDARY_LAYOUT='Hebrew', these names need to match the names for your 'language_config.json'
- open terminal in project dir and run the command:
chmod +x run.command
- Right-click the run.command file and click "Make Alias".
To make an "app-like" desktop executable (optional):
- Move the alias to the Desktop (or other wanted location).
- Copy to clipboard the icon.png image.
- Right-click the alias and click "Get Info".
- Click the icon in the top left corner of the "Get Info" window and paste the icon.png image.
Congratulations! now, you can run the script by double-clicking the alias on the desktop.
On running, a terminal window will open and the script will run in the background. you can see when language is changed by the prints in the terminal.
to kill the sctipt simply terminate the terminal window.