Fix text typed in the wrong keyboard layout — instantly.
Typed a whole sentence and realized you were in the wrong language? Select the text, press F8, and it's fixed. One key, works everywhere.
Every bilingual typist knows this pain:
You type: akuo
You meant: שלום
Windows has no built-in fix for this. Until now.
- Select the mistyped text
- Press F8
- Done ✅
| Before | After |
|---|---|
akuo |
שלום |
שלום |
akuo |
vpua yh akr |
הודע לי שלח |
- 🔑 One key — just F8, no Ctrl+Shift combos
- 🌍 Works everywhere — Word, Chrome, VS Code, WhatsApp, Outlook, Excel, Notepad, any app
- 🪶 Tiny — 2KB script, zero UI, zero tray icons, zero bloat
- 🚀 Auto-start — launches with Windows silently
- 🔄 Auto-detect — knows if your text is Hebrew or English
- 🔓 Open source — read the code, modify it, trust it
- English (US/QWERTY) ↔ Hebrew (Standard Israeli)
Want to add another language pair? PRs welcome! See Contributing.
- Download the latest release
- Extract the ZIP
- Run
LayoutSwitch-Installer.bat - Done — F8 works immediately
The installer will:
- Install AutoHotkey v2 if needed (via winget)
- Copy the script to your Documents folder
- Add it to Windows Startup
- Install AutoHotkey v2
- Download
LayoutSwitch.ahk - Double-click to run
- (Optional) Copy to
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\for auto-start
- Install Hammerspoon (or
brew install --cask hammerspoon) - Download the
mac/folder - Run
bash install.sh - Grant Accessibility permissions: System Settings → Privacy → Accessibility → Hammerspoon ✅
- Done — F8 works!
The script maps each physical key position between English and Hebrew keyboard layouts. When you press F8:
- Copies selected text to clipboard
- Detects if the text is Hebrew or English (by Unicode range)
- Converts each character using the keyboard position map
- Pastes the corrected text back
No AI, no internet, no API calls. Pure local character mapping.
Windows: Delete %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\LayoutSwitch.ahk
macOS: Delete ~/.hammerspoon/layout-switch.lua and remove the dofile line from ~/.hammerspoon/init.lua
Windows: Windows 10/11 + AutoHotkey v2 (auto-installed)
macOS: macOS 10.15+ + Hammerspoon (free, open source)
| Alternative | Problem |
|---|---|
| Langover | Heavy install, tray icon, shareware |
| KEset | Chrome extension only — doesn't work in Word, WhatsApp, etc. |
| Online converters | Copy → paste → convert → copy → paste back. Tedious. |
| Windows built-in | Doesn't exist ❌ |
| LayoutSwitch | One key. Every app. 2KB. Free. ✅ |
Want to add support for another language pair (Russian, Arabic, French, etc.)?
- Fork this repo
- Add a new
Map()inLayoutSwitch.ahkwith the key mappings - Submit a PR
MIT — do whatever you want with it.
Built by Meir Arad | M Digital
If this saved you time, give it a ⭐