kinput
Low-level Rust library for input injection on Linux.
Creates and manages virtual keyboard and mouse devices directly in the kernel input subsystem, independent of distribution or any graphical environment.
Features
- Kernel-level virtual input devices
- Keyboard and mouse support
- Global input delivery (real-hardware equivalent)
- No graphical or compositor dependencies
- Minimal, low-level API
Usage
use ;
Setup script for non-root user
#!/bin/bash
MODULE_GROUP=
if [; then
else
RULE_FILE="/etc/udev/rules.d/99-uinput.rules"
RULE_CONTENT="KERNEL==\"uinput\", MODE=\"0660\", GROUP=\"input\""
|
fi
Logout and login required.
Scope
- Bots
- Automated testing
- Accessibility tooling
- Device emulation