vicfryzel / xmonad-config

My xmonad and xmobar configuration, plus necessary scripts to make things more usable.
http://www.vicfryzel.com/2010/06/27/obtaining-a-beautiful-usable-xmonad-configuration
MIT License
463 stars 161 forks source link

Support for numpad keys #11

Closed cyrusdavid closed 11 years ago

cyrusdavid commented 11 years ago

Hi, sadly I don't know any Haskell. Will there be a chance to support numpad keys on switching workspaces?

cyrusdavid commented 11 years ago
numPadKeys =
  [
    xK_KP_End, xK_KP_Down, xK_KP_Page_Down
    , xK_KP_Left, xK_KP_Begin,xK_KP_Right
    , xK_KP_Home, xK_KP_Up, xK_KP_Page_Up
  ]

[((m .|. modMask, k), windows $ f i)
    | (i, k) <- zip (XMonad.workspaces conf) numPadKeys
    , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
++