[xmonad] Re: Problem running Xmonad

Devin Mullins me at twifkak.com
Tue Sep 23 00:55:17 EDT 2008


On Mon, Sep 22, 2008 at 08:44:32PM -0700, Fred Blasdel wrote:
> An easy way out would be to try defining the bindings again manually,
> only this time using "xK_KP_1" instead of "xK_1" so that the keypad is
> used.

As an example of this:

import XMonad
import qualified XMonad.StackSet as W
import XMonad.Config.Gnome
import XMonad.Util.EZConfig (additionalKeys)

main = xmonad $ gnomeConfig { -- NOTE the extra $ sign
         modMask  = mod4Mask
       }
       `additionalKeys`
       -- copied-ish from XMonad/Config.hs
       [((m .|. mod4Mask, k), windows $ f i)
         | (i, k) <- zip (workspaces gnomeConfig) [xK_KP_1 .. xK_KP_9]
         , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]

Given that you're holding shift, I'm surprise it doesn't zap the window
to the other workspace. I guess xev might help. Oh, you crazy kids and
your keyboard layouts.


More information about the xmonad mailing list