[Xmonad] Re: Switching workspace ...

kg kg2007.kg at gmail.com
Mon Sep 3 18:20:33 EDT 2007


Donald Bruce Stewart wrote:
> However, your mod-1..n workspace switching don't work? Is it possible
> you've got a strange mod key setting, perhaps? What does xmodmap print?
>   
I have a french keyboard (azerty).

I have modified the Config.hs file :
    -- mod-[1..9] @@ Switch to workspace N
    -- mod-shift-[1..9] @@ Move client to workspace N
    [((m .|. modMask, k), f i)
        | (i, k) <- zip [0 .. fromIntegral workspaces - 1] [xK_1 ..]
        , (f, m) <- [(view, 0), (shift, shiftMask)]]
    ++
    -- Ajout
    -- mod-[1..9] @@ Switch to workspace N
    -- mod-shift-[1..9] @@ Move client to workspace N
    [((m .|. modMask, k), f i)
        | (i, k) <- zip [0 .. fromIntegral workspaces - 1] [xK_a
..]                 -- See here
        , (f, m) <- [(view, 0), (shift, shiftMask)]]




    -- mod-{w,e,r} @@ Switch to physical/Xinerama screens 1, 2, or 3
    -- mod-shift-{w,e,r} @@ Move client to screen 1, 2, or 3
    ++
    [((m .|. modMask, key), screenWorkspace sc >>= f)
        | (key, sc) <- zip [xK_w, xK_e, xK_r] [0..]
        , (f, m) <- [(view, 0), (shift, shiftMask)]]


When the shortcut is mod-a, I can switch workspace :)
So, it is  a  key bindings problem.

A brief descritption of a french keyborad:
To do the number 1 , we must press shift+& .

So, to do a 1 I must press on shift  then  '&'. Maybe , xmonad catch
mod-shift-& and not mod-(shift-&) -> mod-1 .
Is that I say is comprehensible ?
If yes,
Are you agree ?



More information about the Xmonad mailing list