Simple Python program to execute commands on keypress on headless systems
Project description
This program aims to handle button/command binding for headless hosts. It captures all events from an input device (keyboard, mouse, etc.) and runs commands appropriately.
inputexec was born from the need to pass key presses from a remote control to a Music Player Daemon.
Example usage:
inputexec --config=actions.ini --source-file=/dev/input/keyboard
Installation
Distribution packages (recommended)
Use distribution-specific packages if they are available. The author knows of the following options:
None yet
From PyPI
Simply run:
pip install inputexec
From source
You’ll need the python-evdev library, available from PyPI (https://pypi-hypernode.com/pypi/evdev).
Then, run:
git clone https://github.com/rbarrois/evdev.git
Running
inputexec uses only optional arguments; the full list is available through inputexec --help.
All options may also been read from a configuration file passed as inputexec --config /path/to/example.ini. The list of valid options for the configuration files are available through inputexec --dump-config.
Links
- Source code and issues:
- PyPI:
- Documentation:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file inputexec-0.2.1.tar.gz
.
File metadata
- Download URL: inputexec-0.2.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d859749d5f00e488bd01af1319043c6fb996b7600a907dc4a9c1c186b2a2ac5 |
|
MD5 | 3eca8778617a03e5f590994141826a76 |
|
BLAKE2b-256 | 83d01b326e655a549b77482b8578a8bd6e450e4b24f21588741be61b611b9841 |