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

gxkb rewrites xmodmap mappings #10

Closed
last5bits opened this issue Apr 14, 2017 · 5 comments
Closed

gxkb rewrites xmodmap mappings #10

last5bits opened this issue Apr 14, 2017 · 5 comments

Comments

@last5bits
Copy link

Hi everybody,

First, let me thank you for this tray indicator, I've been using it for awhile and it worked great. Here's, however, a small issue I've encountered.

Reproduce:

  1. Run xmodmap -e "keycode 117 = Prior" -e "keycode 112 = Next" to swap PageUp and PageDown
  2. Run gxkb and that will restore the mappings to the default
@zen-tools
Copy link
Owner

Hi! And thanks for the report.

I think there are three options to resolve this issue:

  1. Run xmodmap after gxkb startup.

or

  1. Set never_modify_config param to true in ~/.config/gxkb/gxkb.cfg. In this case gxkb will not override X keyboard config. But all keyboard layouts should be configured on X11 side.

or

  1. Create your own keyboard layout. But it's more complex task.

@last5bits
Copy link
Author

Thanks for the swift response! Unfortunately, solution 1 doesn't work since if you go to a TTY and back, the parameters still will be overridden. However, I tried solution 2 and it works like a charm. Thank you!

@last5bits
Copy link
Author

That's interesting, opening a TTY and going back still overrides the mappings. Do you have any suggestions?

@last5bits last5bits reopened this Apr 15, 2017
@zen-tools
Copy link
Owner

Looks like last bug was introduced by this commit. I have pushed a fix into the master branch. So, I will be grateful if you test it. Or you can try to rollback on gxkb v0.7.8 and I double check the fix later.

@last5bits
Copy link
Author

Works for me! Thank you very much.

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

No branches or pull requests

2 participants