Skip to main content

TUI that allows creating and replaying uinput devices from libinput recordings

Project description

unplug

unplug is a Python TUI that allows creating and replaying uinput devices from libinput recordings.

unplug requires write access to /dev/uinput, so it needs to be run as root or with the appropriate permissions set on the /dev/uinput node.

Installation

$ pip install unplug
# allow access to uinput for the time being (or run as root)
$ sudo chmod o+rw /dev/uinput
$ unplug

This will search for any .yml file in the current directory and if it looks like a valid libinput record file, it will load it into the available list of devices.

Where the device name/vid/pid is the same, multiple recordings are collated into the same device within unplug, so the

See the libinput documentation for details on libinput record.

Running from git

$ git clone https://gitlab.freedesktop.org/whot/unplug.git
$ cd unplug
$ uv run unplug

Updating recordings

To create recordings, you can use the libinput record command:

$ sudo libinput record --output recording.yml
# select device, record a few events, ctrl+c

Adding the (optional) unplug.name and unplug.description keys to the recording file will allow you to name the recording in the unplug TUI:

# libinput record
version: 1
ndevices: 1
libinput:
  version: "1.28.903"
  git: "unknown"
# Add the unplug.name key as description of this recording
unplug:
  name: "Key A press/release"
  description: any short markdown

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

unplug-0.1.1.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unplug-0.1.1-py3-none-any.whl (75.6 kB view details)

Uploaded Python 3

File details

Details for the file unplug-0.1.1.tar.gz.

File metadata

  • Download URL: unplug-0.1.1.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.25

File hashes

Hashes for unplug-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0a8e54b401631c2530665d4a266404d5b8b1dbcae12f29dbf28c133234ad67c8
MD5 b5a7729784f6d808c376a94aab315aff
BLAKE2b-256 9838901b1a06c5c67f0d5899dde3a8696d8a1f6d069da43b02a6182df234c4cf

See more details on using hashes here.

File details

Details for the file unplug-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: unplug-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 75.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.25

File hashes

Hashes for unplug-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47da10025efcc225f02d6fc139fbe8b213e81c812ccef035c51b4c94cb4e28b5
MD5 920b844ca735b9de891e54f90ead6840
BLAKE2b-256 e4c5aa7692440a36d4a4c0c2b6da62cd4e1efc3cd9bf0a2bac8a33637e97f3de

See more details on using hashes here.

Supported by

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