A hotkey combination listener that outputs text after keypress combo listener is activated.
This was created under the assumption of python version 3.11
To install PyHotkey, run the following command:
pip install pyhotkey
To activate the PyHotkey hotkey combination listener, use:
pyhotkey
Run . ./use-venv.sh
to switch to python3.11 using python and activate/create the virtual environment.
- Activate and deactivate the hotkey combination listener using a PyHotkey modifier key.
- Define your custom hotkey combinations and their corresponding actions in
combos.json
.
Edit combos.json
to define your hotkey combinations and the text that should be output when each combination is activated.
Example:
{
"ctrl+alt+a": "Text for ctrl+alt+a",
"ctrl+alt+b": "Text for ctrl+alt+b"
}
To run tests, run the following command:
python -m unittest tests.py
Contributions are welcome! Please read the contribution guidelines first.
MIT
Cary Carter Email: ccarterdev@gmail.com GitHub: cc-d