snippetbashTip
uinput — Intercept and write input events to a virtual keyboard device using /dev/uinput. More information: <
Viewed 0 times
commandandcliinterceptuinputeventswriteinput
linux
Problem
How to use the
uinput command: Intercept and write input events to a virtual keyboard device using /dev/uinput. More information: <https://gitlab.com/interception/linux/tools/-/tree/master#uinput>.Solution
uinput — Intercept and write input events to a virtual keyboard device using /dev/uinput. More information: <https://gitlab.com/interception/linux/tools/-/tree/master#uinput>.Show resulting YAML device description merge and exit (dry-run):
uinput -pMerge YAML device description(s) to resulting virtual device:
sudo uinput -c {{path/to/device1.yaml path/to/device2.yaml ...}}Merge reference device description from device node(s) to resulting virtual device:
sudo uinput -d {{/dev/input/eventX /dev/input/eventY ...}}Code Snippets
Show resulting YAML device description merge and exit (dry-run)
uinput -pMerge YAML device description(s) to resulting virtual device
sudo uinput -c {{path/to/device1.yaml path/to/device2.yaml ...}}Merge reference device description from device node(s) to resulting virtual device
sudo uinput -d {{/dev/input/eventX /dev/input/eventY ...}}Context
tldr-pages: linux/uinput
Revisions (0)
No revisions yet.