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

Conversation

rejedai
Copy link

@rejedai rejedai commented Sep 17, 2023

Added the ability to use environment variables for configuration.

Also I added skip event checking, because otherwise the program does not allow me to use a gamepad or mouse for binding, although I have bound the corresponding buttons.

Updated README.

UPD: I figured out why it wasn't working, sudo resets Environmet variables to zero.
This works:
sudo env SKIP_EVENT_CHECK=1 EV_KEY_CODE=KEY_PAUSE XKEY_EVENT=Pause push-to-talk /dev/input/by-id/usb-keybrd-event-kbd

@Rush
Copy link
Owner

Rush commented Dec 19, 2023

@rejedai apologies for the delay in review. I like this. Would it be possible for you to refresh the PR and also look at the new mouse button support feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants