mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-28 02:31:52 -07:00
Make numlockMask configurable
This commit is contained in:
8
Main.hs
8
Main.hs
@@ -62,6 +62,12 @@ keys = M.fromList $
|
||||
| i <- [1 .. workspaces]
|
||||
, (f, m) <- [(view, 0), (tag, shiftMask)]]
|
||||
|
||||
--
|
||||
-- The mask for the numlock key. You may need to change this on some systems.
|
||||
--
|
||||
numlockMask :: KeySym
|
||||
numlockMask = lockMask
|
||||
|
||||
ratio :: Rational
|
||||
ratio = 0.5
|
||||
|
||||
@@ -130,7 +136,7 @@ grabKeys dpy rootw = do
|
||||
ungrabKey dpy '\0' {-AnyKey-} anyModifier rootw
|
||||
forM_ (M.keys keys) $ \(mask,sym) -> do
|
||||
kc <- keysymToKeycode dpy sym
|
||||
mapM_ (grab kc) [mask, mask .|. lockMask] -- note: no numlock
|
||||
mapM_ (grab kc) [mask, mask .|. numlockMask] -- note: no numlock
|
||||
where
|
||||
grab kc m = grabKey dpy kc m rootw True grabModeAsync grabModeAsync
|
||||
|
||||
|
Reference in New Issue
Block a user