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

set-keys does not respect keboard layout #44

Open
KjartanOli opened this issue Jun 17, 2024 · 1 comment
Open

set-keys does not respect keboard layout #44

KjartanOli opened this issue Jun 17, 2024 · 1 comment

Comments

@KjartanOli
Copy link

I use a dvorak layout. To be specific my set-xkb-rules looks like this:

(set-xkb-rules '((layout . "is")
                 (variant . "dvorak")
                 (options . "ctrl:swapcaps")))

This works fine when typing, but my keybindings don't work. As an example, I have the following set-keys call in my config:

(set-keys "s-e" '(dwl:spawn "/gnu/store/m222s1gsbl0vvnsfsppx9y4g2fvbh2j0-emacs-next-pgtk-xwidgets-30.0.50-2.170c655/bin/emacs" "-q"))

However, pressing the key I would use to type e, which is d on my physical keyboard's qwerty layout does nothing, but pressing the physical e key starts Emacs.

@Frewacom
Copy link
Member

I think this is caused by dwl-guile using keycodes instead of keysyms for keybindings, which essentially causes it to ignore your keyboard layout.

The best way solve this would probably be to add an option that allow you to choose if keycodes or keysyms should be used for keybindings.

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