https://github.com/randoragon/xkeycheck
Small X utility to check if a physical key is pressed.
https://github.com/randoragon/xkeycheck
keyboard scripting utility xorg
Last synced: about 1 year ago
JSON representation
Small X utility to check if a physical key is pressed.
- Host: GitHub
- URL: https://github.com/randoragon/xkeycheck
- Owner: randoragon
- License: mit
- Created: 2021-01-25T19:28:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-16T13:40:11.000Z (about 5 years ago)
- Last Synced: 2025-02-06T08:44:59.685Z (over 1 year ago)
- Topics: keyboard, scripting, utility, xorg
- Language: C
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# xkeycheck
xkeycheck is a small shell utility for X which determines whether or not a key is being pressed down or not.
I wrote it because I was missing a simple, quick way of obtaining keyboard information in my shell scripts.
## Example usage
xkeycheck a && echo "key a is down"
## Installation
Arch Linux users can install the `xkeycheck-git` AUR package.
You only need Xlib installed, which comes by default on most Unix installations.
Then, run the following (if necessary, as root):
make install
You can uninstall in the same way with
make uninstall