Re: [Xmonad] Re: Switching workspace ...

Donald Bruce Stewart wrote:
Ah! You've modified your Config.hs -- you should tell us that up front when keybindings don't work :)
I have modified sources just before my last mail. And I have two folder, one for the original code, the second for modifications.
Is it possible to confirm that the keybindings do in fact work with a default Config.hs ?
No, the keybinding does not work whit the default Config.hs. But It works with the piece of code which I add. (keybinding: mod-a , mod-b ... for workspace 1 , 2 ..).

kg2007.kg:
Donald Bruce Stewart wrote:
Ah! You've modified your Config.hs -- you should tell us that up front when keybindings don't work :)
I have modified sources just before my last mail. And I have two folder, one for the original code, the second for modifications.
Is it possible to confirm that the keybindings do in fact work with a default Config.hs ?
No, the keybinding does not work whit the default Config.hs. But It works with the piece of code which I add. (keybinding: mod-a , mod-b ... for workspace 1 , 2 ..).
Ok, I suspect then that X or xmodmap are confused about your keyboard (or possibly your modkey). -- Don

Thanks everybody :) I have find a solution ... I don't believe it's a beautiful solution, but it works ! In the Config.hs : keyWorkspace :: [KeySym] keyWorkspace = [xK_ampersand,xK_eacute,xK_quotedbl, xK_apostrophe,xK_parenleft,xK_minus,xK_egrave,xK_underscore,xK_ccedilla, xK_agrave] -- 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] (take (fromIntegral workspaces - 1) keyWorkspace) , (f, m) <- [(view, 0), (shift, shiftMask)]] Then, I answer me a question : Am I the first "french keyboard" 's user who use xmonad ? Thanks again .

kg2007.kg:
Thanks everybody :)
I have find a solution ... I don't believe it's a beautiful solution, but it works !
In the Config.hs :
keyWorkspace :: [KeySym] keyWorkspace = [xK_ampersand,xK_eacute,xK_quotedbl,
xK_apostrophe,xK_parenleft,xK_minus,xK_egrave,xK_underscore,xK_ccedilla, xK_agrave]
-- 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] (take (fromIntegral workspaces - 1) keyWorkspace) , (f, m) <- [(view, 0), (shift, shiftMask)]]
Then, I answer me a question : Am I the first "french keyboard" 's user who use xmonad ?
Well, the first to report a problem anyway :) I'm glad you've found a solution: would you like to summarise it so we can add it to the FAQ page? -- Don

On Tue, Sep 04, 2007 at 10:23:58AM +1000, Donald Bruce Stewart wrote:
kg2007.kg:
Thanks everybody :)
I have find a solution ... I don't believe it's a beautiful solution, but it works !
In the Config.hs :
keyWorkspace :: [KeySym] keyWorkspace = [xK_ampersand,xK_eacute,xK_quotedbl,
xK_apostrophe,xK_parenleft,xK_minus,xK_egrave,xK_underscore,xK_ccedilla, xK_agrave]
-- 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] (take (fromIntegral workspaces - 1) keyWorkspace) , (f, m) <- [(view, 0), (shift, shiftMask)]]
Just out of curiosity, could you try if this would work? -- mod-[1..9] @@ Switch to workspace N -- mod-shift-[1..9] @@ Move client to workspace N [((m .|. modMask, k), f i) | (i, k) <- zip workspaces [xK_F1 ..] , (f, m) <- [(view, 0), (shift, shiftMask)]] This is my personal setting, because I get annoyed with the overlap with emacs' key bindings (and my laptop has no other mod key I could redefine modMask as). If it also turns out to be more robust with regard to international keyboards, it might not be a bad default. -- David Roundy Department of Physics Oregon State University

David Roundy wrote:
Just out of curiosity, could you try if this would work?
-- mod-[1..9] @@ Switch to workspace N -- mod-shift-[1..9] @@ Move client to workspace N [((m .|. modMask, k), f i) | (i, k) <- zip workspaces [xK_F1 ..] , (f, m) <- [(view, 0), (shift, shiftMask)]]
This is my personal setting, because I get annoyed with the overlap with emacs' key bindings (and my laptop has no other mod key I could redefine modMask as). If it also turns out to be more robust with regard to international keyboards, it might not be a bad default. Yes, it works .

Well, the first to report a problem anyway :)
I'm glad you've found a solution: would you like to summarise it so we can add it to the FAQ page? I think all "french keyborad"'s users who use xmonad will have this
Donald Bruce Stewart wrote: problem ... There is a more easy solution with F1..F9 (from David Roundy): -- mod-[1..9] @@ Switch to workspace N -- mod-shift-[1..9] @@ Move client to workspace N [((m .|. modMask, k), f i) | (i, k) <- zip workspaces [xK_F1 ..] , (f, m) <- [(view, 0), (shift, shiftMask)]]
participants (3)
-
David Roundy
-
dons@cse.unsw.edu.au
-
kg