
20 May
2009
20 May
'09
10:37 a.m.
Line 69: it could result in a pattern match failure if it is applied to lists shorter than 3 elements. Most likely DynamicLog doesn't do that, so the function is safe (and IIRC xmonad would catch the error anyways). The alternative using take and drop is shorter too:
, ppOrder = \(_:_:title:_) -> [title] -- no easier way?
, ppOrder = take 1 . drop 2
There is also XMonad.Config.Gnome.gnomeConfig which hides the ewmh and avoidstruts stuff. It may be worth considering using instead of XMonad.defaultConfig. Adam