1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 15:55:26 +02:00

mux, udevmon, intercept, uinput: add page (#16667)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
Santosh Shrestha 2025-05-31 20:41:52 +05:45 committed by GitHub
parent 0ca7cdcbcf
commit a2422ac85e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 57 additions and 0 deletions

12
pages/linux/intercept.md Normal file
View file

@ -0,0 +1,12 @@
# intercept
> Read raw input events from a specified input event device and redirect it to stdout.
> More information: <https://gitlab.com/interception/linux/tools/-/tree/master?ref_type=heads#intercept>.
- Read and output raw input events from a given input device file (the system will not see any key presses):
`sudo intercept -g {{/dev/input/eventX}}`
- Read and output raw input events from a given input device file (the system can see key presses and does not block other programs from reading them):
`sudo intercept {{/dev/input/eventX}}`

20
pages/linux/mux.md Normal file
View file

@ -0,0 +1,20 @@
# mux
> Intercept and multiplex streams of input events.
> More information: <https://gitlab.com/interception/linux/tools/-/tree/master?ref_type=heads#mux>.
- Create a new muxer with a specified name:
`mux -c {{muxer_name1 muxer_name2 ...}}`
- Set the muxer's internal queue size (default is 100):
`mux -s {{size}}`
- Read input from a named muxer (can be repeated in "switch mode"):
`mux -i {{input_muxer_name}}`
- Write output to a named muxer (can be repeated):
`mux -o {{output_muxer_name}}`

9
pages/linux/udevmon.md Normal file
View file

@ -0,0 +1,9 @@
# udevmon
> Intercept and monitor input devices for launching tasks.
> Filters or modifies events according to configuration file(s) (default: `/etc/interception/udevmon.d/*.yaml`).
> More information: <https://gitlab.com/interception/linux/tools/-/tree/master?ref_type=heads#udevmon>.
- Start udevmon with specified configuration file:
`udevmon -c {{path/to/config.yaml}}`

16
pages/linux/uinput.md Normal file
View file

@ -0,0 +1,16 @@
# uinput
> Intercept and write input events to a virtual keyboard device using /dev/uinput.
> More information: <https://gitlab.com/interception/linux/tools/-/tree/master?ref_type=heads#uinput>.
- Show resulting YAML device description merge and exit (dry-run):
`uinput -p`
- Merge 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 ...}}`