You are not logged in.
I created a little shell script that uses a crude keylogger (xinput test <keyboard_id>) and xdotool to replace certain character combinations when they are typed. The script is here but the particulars are not important.
The problem is that my script works well with all the GUI applications I've tested except for (ironically) my preferred text editor, xfwrite. It seems that xfwrite is somehow immune to the keylogger.
To reproduce the issue, open up a terminal emulator then:
$ sudo apt install xinput xfe
$ xinput test <your_keyboard_id> # mine is 9
Leave the terminal emulator open then launch a different application (e.g., web browser) and type something; you'll notice that xinput test detects your keystrokes. Now launch xfwrite and type something; you'll notice that xinput test does not seem to detect any keystrokes and produces no ouput.
I tried recompiling libfox and libfox-dev with the --with-xinput flag to configure then recompiling xfe, but it made no difference. UNIX wizards who frequent this forum: Any idea what needs to be done so that xinput test can detect keystrokes while typing in xfwrite?
Last edited by GNUser (2019-09-29 04:09:34)
Offline
I found that xinput --test-xi2 --root and xinput --test-xi2 --root <keyboard_id> work.
Last edited by GNUser (2019-09-29 04:08:56)
Offline