Skip to main content

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

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.

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

inputexec-0.2.2.tar.gz (10.5 kB view details)

Uploaded Source

File details

Details for the file inputexec-0.2.2.tar.gz.

File metadata

  • Download URL: inputexec-0.2.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for inputexec-0.2.2.tar.gz
Algorithm Hash digest
SHA256 79d695f808dab38a4704695f699019d6e192c4d9d04c7a4a892efe53330df520
MD5 c0b1dcdc5458725a600757b4d2593a83
BLAKE2b-256 0e5f91b6f21ef0c2dc75bc97fb1051a8bed7dd4ff6f73bde481fdceb99b6a055

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page