What steps will reproduce the problem?
1. Switch to Belgian keyboard layout
2. Add azertyconfig to xmonad.hs as described in docs
3. Try switching to workspace 6 or 8
What is the expected output? What do you see instead?
I expect to switch to workspace 6 or 8 respectively, but nothing happens.
Switching to other workspaces works fine.
What version of the product are you using? On what operating system?
xmonad-0.11
xmonad-contrib-0.11.3
Debian 8
The issue are the keymappings in XMonad/Config/Azerty.hs. The Belgian keyboard
layout seems to need different codes for certain keys.
My workaround
Copy the source from Azerty.hs to the appropriate places in xmonad.hs.
Replace the keymappings in function azertykeys:
[0x26,0xe9,0x22,0x27,0x28,0x2d,0xe8,0x5f,0xe7,0xe0]
by
[ xK_ampersand
, xK_eacute
, xK_quotedbl
, xK_apostrophe
, xK_parenleft
, xK_section -- 6 0xa7
, xK_egrave
, xK_exclam -- 8 0x21
, xK_ccedilla
, xK_agrave
, xK_parenright
]
Proposed solution
1. Replace the original key names like 0x26 by their more readable name like
xK_ampersand (6 and 8 still need to be matched for the original azerty layout)
2. Add the variant for the belgian keyboard layout (and maybe others) to the
documentation of Azerty.hs.
Alternative solution 1
Add a module for the belgian keyboard layout: e.g. AzertyBe.hs
Alternative solution 2
Actually the best solution in my opinion.
Provide an easy, well-documented way to convert keymappings to other keyboard
layouts, so the original keystrokes are preserved. The xmonad cheat sheet would
stay valid, just with other symbols on the keys.
Original issue reported on code.google.com by bert.mo...@gmail.com on 30 Jan 2015 at 9:56
Original issue reported on code.google.com by
bert.mo...@gmail.com
on 30 Jan 2015 at 9:56