Issue 590 in xmonad: different azerty layouts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 590 in xmonad: different azerty layouts

codesite-noreply@google.com
Status: New
Owner: ----

New issue 590 by bert.mo... at gmail.com: different azerty layouts
https://code.google.com/p/xmonad/issues/detail?id=590

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.

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply | Threaded
Open this post in threaded view
|

Issue 590 in xmonad: different azerty layouts

codesite-noreply@google.com

Comment #1 on issue 590 by allber... at gmail.com: different azerty layouts
https://code.google.com/p/xmonad/issues/detail?id=590

The second alternative is bug 398:  
https://code.google.com/p/xmonad/issues/detail?id=398

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings