LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

intercept

reads raw input events from a Linux input device and outputs them to stdout

TLDR

Read raw input events exclusively (system won't see them)
$ sudo intercept -g [/dev/input/eventX]
copy
Read raw input events non-exclusively (system also sees them)
$ sudo intercept [/dev/input/eventX]
copy

SYNOPSIS

intercept [options] device

DESCRIPTION

intercept reads raw input events from a Linux input device and outputs them to stdout. It is part of the Interception Tools project, designed for creating input device manipulation pipelines.The output can be piped to transformation tools and then back to a virtual input device using uinput, enabling key remapping, macro creation, and other input modifications at a low level.

PARAMETERS

-g

Grab the device exclusively, preventing other programs from reading events
device
Input device file (e.g., /dev/input/event0)

INSTALL

brew install intercept
copy

CAVEATS

Requires root privileges to access input devices. Using -g flag captures input exclusively, which can lock you out if intercepting keyboard input without proper output handling. Part of the interception-tools package.

HISTORY

intercept is part of the Interception Tools project, designed as a composable set of utilities for intercepting and manipulating input events on Linux using the evdev and uinput interfaces.

SEE ALSO

evtest(1), uinput(4), libinput(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid