First run
# Lets the daemon read the hotkey from /dev/input; takes effect after you log in again.
# On a Steam Deck, set a password with `passwd` first.
sudo usermod -aG input "$USER"
~/.local/bin/lexmechanic
The daemon starts in the background and opens its UI in your browser. Then:
- Open the advanced settings with the cog icon, choose an AI provider and enter its API key.
- Choose the language to translate into.
- With a dialogue on screen, press Calibrate, drag over the dialogue window and save the region. Until you do, the whole screen is sent.
- Press the hotkey during a conversation. The default is the forward mouse button (Mouse 5); click Hotkey in the UI and press another mouse button or key to change it.
To start it from the app menu instead of a terminal, add a desktop shortcut.