Display context-sensitive keyboard shortcuts or other hints on Linux and Windows
Display context-sensitive keyboard shortcuts or other hints on Linux and Windows.
The tool can be started by
python -m keyhint or simply
keyhint. But as the keyhint displays hints based on the currently active window, you probably want to configure a global hotkey to trigger it on demand.
Based on the process name and window title of the active window, different sets of hints are displayed.
Screenshots of some hints:
pip install keyhint
Look & Behavior
- You can configure colors, font and closing behavior by modifying the file
You can also configure the hints to show for different applications by modifying or adding section in the file
The hints to display are selected by going through all sections from top to bottom and comparing the value of
regex_processwith the process name of the active window and the value of
regex_titlewith the title of the active window. The first section, where both values are found, gets displayed.
Both of those
regex_values are interpreted as case insensitive regular expressions.)
<CONFIG_PATH>can be different from system to system. On Linux it's usually
~/.config, on Windows it should be
You can reset configuration or hints to the shipped version by deleting the
yamlfiles from the configuration folder.
- For showing different browser-hints depending on the current website, you might want to use a browser extension like "Add URL To Window Title" and then configure the sections in
hints.yamlto look for the URL in the window title.
Differentiate Multi Platform:
Sometimes the hints you want to show are the same for e.g. Linux and Windows. In that case, you might want to set e.g.
regex_process: firefox.*to match with
Firefox(Linux) as well as with
If you want to show different hints for the same tool depending on the platform, use two sections, one with
regex_process: firefox(?!\.exe)(Linux) and one with
I'm happy about any contribution! Especially I would appreciate submissions to improve the shipped hints. (The current set are the hints I personally use).
Should work on Linux, Mac (not yet achieved) & Windows.
- Don't run as service
It shouldn't consume resources in the background, even if this leads to slower start-up time.
- No network connection
Everything should run locally without any network communication.
The fewer dependencies, the better.
- Chain of Responsibility as main design pattern
See description on refactoring.guru
Supports setups with two or more displays
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size keyhint-0.1.0-py3-none-any.whl (16.0 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size keyhint-0.1.0.tar.gz (15.1 kB)||File type Source||Python version None||Upload date||Hashes View|