Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to configure keys using Environment Variables 2 #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added additional information to README
rejedai committed Sep 17, 2023
commit 94367711368218223a4bae392f69cf587fcdba9d
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -36,6 +36,19 @@ sudo usermod -aG input <your username>
```
Then just log out and log in. A process named `push-to-talk` should be running (visible in any process monitor).

## Configure

Supported options:

| Environment variable | Description |
|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `EV_KEY_CODE` | Сode of the button that program expects to be pressed.<br/><br/>Full list:<br/>https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h |
| `XKEY_EVENT` | Event to be sent to X11 apps.<br/><br/>Full list (Ignore leading **XKB_KEY_**):<br/>https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-keysyms.h |
| `SKIP_EVENT_CHECK` | Skipping the evdev event existence check. Useful for cases when the mouse is used keyboard events. |




# License

MIT