Ruggi.Site Ruggi.Site
Tools · Rekey · Guide

Rekey user guide

Rekey - User Guide

Rekey fixes text you typed with the wrong keyboard layout. Example: you wanted Hebrew but typed akuo - Rekey turns it into שלום. It works with any layouts you have installed (English, Hebrew, Spanish, Russian, Arabic ...), in any direction.

1. Linux (Mint Cinnamon, X11)

Install

sudo nala install xdotool xclip x11-xkb-utils libxkbcommon0
cd rekey && ./linux/install.sh

The installer puts rekey in ~/.local/bin, adds a menu launcher, and sets the hotkey Ctrl+Alt+K (Cinnamon > Keyboard > Shortcuts > Custom).

Fix text while typing

  1. Select the wrong text in any program (browser, editor, chat).
  2. Press Ctrl+Alt+K. The selection is replaced by the corrected text, and the corrected text stays selected. Your clipboard now holds the original text.
  3. Something wrong? Ctrl+V pastes the original over the selected correction, and Ctrl+Z undoes the replacement in programs that have an undo.

Right-click actions - right-click the Rekey launcher in the menu or panel:

  • Fix the selected text (uses the selection and puts the corrected text in the clipboard; the hotkey is the one that replaces the text in place)
  • Fix the clipboard text

Terminals use other copy/paste keys. Edit ~/.config/rekey/rekey.ini:

[main]
copykey=ctrl+shift+c
pastekey=ctrl+shift+v
target=il        ; fixed target layout; empty = automatic ("the other layout")
reselect=auto    ; keep the corrected text selected: auto (by the program), left, visual, off (terminals)

Command line

rekey list                 # layouts it knows
rekey text "akuo" --to il  # convert a string
rekey gen us il es         # (re)build layouts.json from the system

2. Windows (not yet tested - see README)

Build with windows\build.bat (needs Free Pascal). Run rekey_win.exe: a tray icon appears. Select text, press Ctrl+Alt+K. Right-click the tray icon for: fix now, target layout, language (English / עברית / Español), regenerate layouts, open settings folder, start with Windows, quit. Settings: %APPDATA%\rekey\rekey.ini (for example hotkey=ctrl+shift+f).

3. Android (any phone browser)

  1. Open web/rekey.html in Brave (from your site or from a file) and, if you like, "Add to home screen". It works offline.
  2. Paste or type the wrong text; the result appears live. Copy it.
  3. Tick the layouts you use (17 built in) or load a layouts.json made on your computer.
  4. Language buttons: English / עברית / Español. Dark is the default; there is a Dark/Light switch.

4. Tips and limits

  • Select only the wrong part. Mixed text (some right, some wrong) gets converted entirely.
  • Dead keys and keys that produce several characters are skipped.
  • Wayland blocks the hotkey/xdotool method; use the right-click actions or the browser page instead.
  • If a layout is missing after you add it, run rekey gen (Windows: tray menu > regenerate).

5. Troubleshooting

Problem Try
Hotkey does nothing Check Keyboard > Shortcuts > Custom; run rekey fix in a terminal; make sure xdotool and xclip are installed
Wrong result Set target= in rekey.ini, or use rekey text "..." --to <layout> to check
Works in browser, not in terminal Set copykey/pastekey as above

Rekey on Windows

Windows 10 or 11, 64-bit. Unzip rekey-windows.zip and run powershell -ExecutionPolicy Bypass -File install.ps1 (no administrator rights). Rekey has to be RUNNING for the hotkey to work, so the installer makes it start every time you sign in (-NoAutostart skips that; the tray menu item "Start with Windows" switches it on and off). Click the tray icon, with either mouse button, for the menu. Select wrongly typed text in any program and press Ctrl+Alt+K; Ctrl+Z in that program undoes it.

If Windows shows "Windows protected your PC" (the program is not signed yet), choose More info, then Run anyway. The installer removes that download mark from its own files. uninstall.ps1 removes Rekey and its start-with-Windows entry.

Rekey on Linux desktops

The installer sets the Ctrl+Alt+K hotkey for Cinnamon, GNOME (X11), MATE and Xfce, and prints the exact steps for KDE, i3, sway and others. The desktop saves the binding; Rekey itself is not a background program, so nothing has to start at boot. Rekey needs an X11 (Xorg) session: on Wayland it works only in programs that run through XWayland, and the installer says so.

← Back to Rekey