Click anything on your Hyprland or Sway desktop from the keyboard. Type a word
you see and press Enter, or press Tab for a hint on every button.
cargo install --locked --git https://github.com/tkutsu/wayhint
wayhint doctorIt needs Rust 1.88 or newer. wayhint doctor checks the rest and says how to
fix what fails. Then bind it in your Hyprland config:
hl.bind("SUPER + W", hl.dsp.exec_cmd("wayhint"))On Sway, bindsym $mod+w exec wayhint. Bars, and apps that hide their
controls, get no hints there: Sway doesn't list its bars or share what windows
show.
wayhint reads the accessibility tree that screen readers use. Apps that hide theirs still get hints, guessed from their pixels.
| App | Setup |
|---|---|
| Qt | hl.env("QT_LINUX_ACCESSIBILITY_ALWAYS_ON", "1") in your Hyprland config |
| Chromium, Electron | --force-renderer-accessibility in ~/.config/chromium-flags.conf or electron-flags.conf, and hl.env("ACCESSIBILITY_ENABLED", "1") |
| GTK, Firefox | Nothing, or gsettings set org.gnome.desktop.interface toolkit-accessibility true if controls are missing |
| Kitty | allow_remote_control socket-only and listen_on unix:${XDG_RUNTIME_DIR}/kitty-{kitty_pid}.sock in kitty.conf |
Reopen an app after changing its setup. An hl.env line reaches apps that
your bar or launcher opens only after you log in again. wayhint doctor says
which open apps miss what, and wayhint doctor --fix <setting> adds the line.
| Key | Action |
|---|---|
| Letters | Find text, or type a hint in hint mode |
Enter |
Click the match |
Tab |
Switch between find and hint mode; next match once you've typed |
| Arrows | Nearest match, or move the pointer |
Esc |
Close |
? |
Show every key |
/ |
Open settings |
Hold P |
Fade wayhint to see what's under it |
Type a capital anywhere before Enter to change the click: R right,
M middle, D double, O hover, H drag. wayhint --hints starts in hint
mode.
wayhint stays open after a click. It closes on Esc, on its shortcut again,
after a click into a text field, or when you click with the mouse yourself
(that needs your user in the input group).
wayhint config --default prints every option with an explanation. Put the
ones you change in ~/.config/wayhint/config.toml.
Or use the settings window. It saves as you go, keeps your file's comments,
and fixes app setup with a click. It needs WebKitGTK (webkit2gtk-4.1):
cargo install --locked --git https://github.com/tkutsu/wayhint wayhint-settingswayhint settings opens it, or brings it forward if it's already open, so it
can have a shortcut:
hl.bind("SUPER + COMMA", hl.dsp.exec_cmd("wayhint settings"))MIT or Apache-2.0. The pixel detector builds on wl-kbptr and Neru (notice). The Hyprland protocol in protocols/ is BSD 3-clause.

