Automaton is a library based on uinput designed to be a substitute for AutoHotkey in linux. It has support for hotkeys, hotstrings, and remaps with configurable options, context sensitivity, and device manipulation.
Automaton supports only Linux. Automaton uses uinput in order to work. So your user should either be in the input group, or install Automaton and run scripts as:
sudo pip install automaton-linux
sudo python3 main.py # main.py contains the Automaton appA simple Automaton script looks like:
fromautomatonimportAutomaton# devices is a list of paths to the devices that you want to manipulate or monitor.# More information on how to get the path for your device is in the Manualapp=Automaton.new(devices= [
'/dev/input/event5',
'/dev/input/event6'
])
# When btw is typed, hit space. It should be replaced with 'by the way'@app.on("btw")defbtw():
return"by the way"app.run() # Blocking.More info in the docs, or take a look at some examples!
- Python >= 3.8
- Python Headers (
Python.h) On Ubuntu, getting them is as simple assudo apt-get install python3-dev