Navigate GUIs without a mouse by typing hints in combination with modifier keys.
Don't like the keybindings? That's ok, you can change them.
[!IMPORTANT]
- You need to have some sort of compositing setup so that you can properly see hints on top of windows with the correct level of transparency. If you run hints and see an opaque/black window rather than a transparent window; this is probably why.
[!NOTE]
The install script below does the following:
Run the install script:
curl -fsSL https://raw.githubusercontent.com/AlfredoSequeida/hints/main/install.sh | bash
[!NOTE]
By default, the install script installs the latest release. If you want to install a specific version add-s -- --version {version}to the end of the command. A version can be a release, commit, tag, or branch. Here are some examples:
curl -fsSL https://raw.githubusercontent.com/AlfredoSequeida/hints/main/install.sh | bash -s -- --version main
curl -fsSL https://raw.githubusercontent.com/AlfredoSequeida/hints/main/install.sh | bash -s -- --version 0.0.7
To setup hints run:
sudo env XDG_SESSION_TYPE=$XDG_SESSION_TYPE env XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP $(whereis hints | awk '{print $2}') --setup
At this point you're pretty much done. You can verify this by running hints in a terminal emulator. However, you should bind hints to your keyboard so that you can summon hints on command. This is very desktop environment / window manager specific, but to get you started here are some examples for popular systems:
[!NOTE]
If you still don't see any hints, the application you're testing could need a bit of extra setup. Please see the Help,-hints-doesn't-work-with-X-application page in the wiki.
For a guide on configuring and using hints, please see the Wiki.
The easiest ways to contribute are to:
If you want to help develop hints, first setup your environment:
python3 -m venv venv
Activate your virtual environment for development. This will differ based on OS/shell. See the table here for instructions.
Install hints as an editable package (from the repository's root directory):
pip install -e .
At this point, hints should be installed locally in the virtual environment, you can run hints in your shell to launch it. Any edits you make to the source code will automatically update the installation. For future development work, you can simply re-enable the virtual environment (step 2).
hints with a short pause in your shell: sleep 0.5; hints. This way you can have time to switch to a window and see any errors / logs in your shell.hints is consuming all keyboard inputs and you're trapped: switch to a virtual terminal with e.g. CTRL+ALT+F2, login, and run killall hints. You can then exit with exit and switch back to the the previous session (most likely 1): CTRL+ALT+F1$ claude mcp add hints \
-- python -m otcore.mcp_server <graph>