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

Sway keymap resets to default when running external commands from emacs #4524

Open
tannart opened this issue Aug 31, 2019 · 2 comments
Open

Comments

@tannart
Copy link

tannart commented Aug 31, 2019

The issue occurs whenever I launch an external shell command from emacs
gui, the logs in the example given are for the following

  • start sway
  • open an emacs session using dmenu
  • type the shift+2 character on my keyboard which produces the " character as my xkb_layout is set to 'gb'
  • execute ls via an external shell command
  • typing the shift+2 character now produces the @ character
  • exit sway

The keymap can be reverted to the correct setting by reloading my sway config, however all subsequent external shell commands will always shift it back to the default us keyboard layout.

I have provided the full debug log above though as far as I am able to tell from some additional tinkering the key lines indicating the change are as follows:

The XKEYBOARD keymap compiler (xkbcomp) reports:

Warning: Unsupported maximum keycode 569, clipping.
X11 cannot support keycodes above 255.
Warning: Unsupported high keycode 372 for name ignored
X11 cannot support keycodes above 255.
This warning only shows for the first high keycode.
Internal error: Could not resolve keysym XF86MonBrightnessCycle
Internal error: Could not resolve keysym XF86RotationLockToggle
Errors from xkbcomp are not fatal to the X server

@bhearsum
Copy link

bhearsum commented Apr 1, 2020

Not sure if it's the same or not, but I have a similar issue in #4664 that is triggered by starting my terminal emulator.

See /usr/share/X11/xkb/symbols/us for a potential workaround, assuming this is rooted in the same issue as mine.

@tannart
Copy link
Author

tannart commented Apr 2, 2020

Just tried out a much lazier variant of your solution (literally just backing up the us file and making a copy of the gb file called us) and that seemed to work great!

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

No branches or pull requests

2 participants