Make ~/.xmonad/xmonad-$arch-$os handle args like /usr/bin/xmonad

This commit is contained in:
Adam Vogt
2015-04-14 18:48:21 +00:00
parent 197b0091f8
commit 307b82a53d
5 changed files with 119 additions and 90 deletions

View File

@@ -271,6 +271,9 @@ instance (a ~ Choose Tall (Choose (Mirror Tall) Full)) => Default (XConfig a) wh
, XMonad.clickJustFocuses = clickJustFocuses
, XMonad.clientMask = clientMask
, XMonad.rootMask = rootMask
, XMonad.handleExtraArgs = \ xs theConf -> case xs of
[] -> return theConf
_ -> fail ("unrecognized flags:" ++ show xs)
}
-- | The default set of configuration values itself