piater / uinputchars

A Linux utility to type character strings into /dev/uinput
GNU General Public License v3.0
9 stars 2 forks source link
c characters keyboard-events keymap linux password-input uinput

uinputchars

A Linux utility to type character strings into /dev/uinput

Abandonment/Deprecation Notice

I recently stumbled upon wtype, which first appeared on GitHub just after I created uinputchars. For my only use case typing credentials into various programs running under Wayland, this is a much better tool – no need for special permissions, inverse keymaps, or milli-sleeps. It works flawlessly as a drop-in replacement for uinputchars.

Thus I declare uinputchars dormant and discourage its use (unless it solves a problem that xdotool/wtype cannot solve for you).

Usage

A typical use case is entering passwords. In contrast to classical password managers, uinputchars can type character strings into anything - Web forms, e-mail clients, Emacs - without any client support. In contrast to xdotool, it does not require X; it also works under Wayland or even on the console.

Generally, uinputchars is run without arguments.

Character strings are read from standard input. There is currently no option to pass them on the command line because this would make them appear in the process table.

Notes

Installation

Arch Linux users can install from the AUR.

Generally under Linux, just run (GNU) make, and move or link the resulting executable to wherever you want. If this does not work, I welcome your patches.