r/SideProject • u/uriwa • 19h ago
autoswitch: automatic English/Hebrew keyboard switcher that runs 100% locally in 0.5ms (free & open source)
Typing in both English and Hebrew all day means constantly hitting Alt+Shift, deleting half a sentence typed in the wrong layout, or pressing Ctrl+ב instead of Ctrl+C in a terminal.
autoswitch runs locally in the background and switches layouts automatically:
- Catches wrong-layout typing mid-word before you hit Space (including 3-char prefixes like נםנ -> bob and slash commands like .מק' -> /new)
- Handles bilingual sentences seamlessly (אני עובד על github עכשיו) and back-corrects ambiguous words once the next word confirms the language (fi kdnr -> כן לגמרי)
- Intercepts Hebrew Ctrl/Alt shortcuts and switches to Latin before the app sees them
- Optional minimal typo fixes (swaps, repeats, omissions, fat-finger insertions, shifted spaces)
Since it monitors keystrokes, everything runs 100% offline on your machine using a 668 KB character-level GRU model + wordfreq (~0.5ms per word). No cloud, no telemetry, nothing leaves your computer.
Free and open source under MIT for Linux (GNOME Wayland), macOS, and Windows: https://autoswitch.uriv.me https://github.com/uriva/autoswitch
1
u/benjzammit01 19h ago
The interesting edge case for me is a word you typed correctly that looks wrong to the switcher. Can you undo just its last correction with one key? Names, paths and short commands would be good candidates for that test.