https://github.com/textshell/term-keyboard-explorer
Explore keyboard responses by linux terminal implementations
https://github.com/textshell/term-keyboard-explorer
Last synced: 21 days ago
JSON representation
Explore keyboard responses by linux terminal implementations
- Host: GitHub
- URL: https://github.com/textshell/term-keyboard-explorer
- Owner: textshell
- Created: 2019-02-16T19:26:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T19:38:18.000Z (over 7 years ago)
- Last Synced: 2025-03-20T06:16:09.963Z (about 1 year ago)
- Language: Python
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Explorations into keyboard responses by linux terminal implementations
Requirements:
=============
* needs to run as root to access /dev/uinput
* needs access to the x server via DISPLAY
* python3-libevdev (libevdev in pypi)
Usage:
======
This is best run in a VM, because it changes keyboard configuration and injects lots of key strokes.
Make sure neither the terminal implementation nor your window manager intercept key strokes.
Run `explorer.py` in a terminal with focus.
Example in a VM
===============
* Setup a VM with buster
* Allow graphical login as root ([possibly like this](https://economictheoryblog.com/2015/11/08/how-to-enable-gui-root-login-in-debian-8/))
* install python3-libevdev and matchbox-window-manager
* setup .xsession
```
matchbox-window-manager -use_titlebar no &
xterm -e /root/startup.sh
```
* and startup.sh
```
#! /bin/bash
echo "auto mode?"
read a
if [ "$a" = "1" ] ; then
/path/to/term-keyboard-explorer/explorer.py
echo finished, press any key to logout
read b
else
bash
fi
```
* Login as root using .xsession as X11 session script.