module pre-**configuring xmonad for Gnome**, just use the following
as your starting xmonad.hs:
- import XMonad
- import XMonad.Config.Gnome
-
- main = xmonad $ gnomeConfig {
- modMask = mod4Mask
- }
+ import XMonad
+ import XMonad.Config.Gnome
+
+ main = xmonad $ gnomeConfig {
+ modMask = mod4Mask
+ }
The modMask setting means that ALT will get delivered to applications,
while all xmonad commands are delivered via the infamous windows key:
doing something like the following (it already includes the shorter
snippet given before):
- import XMonad
- import XMonad.Config.Gnome
-
- myManageHook = composeAll [
- (className =? "Pidgin" <&&> title =? "Buddy List") --> doFloat
- , (className =? "Gnome-panel" <&&> title =? "Run Application") --> doFloat
- -- , (className =? "XEyes") --> doShift "7"
- ]
-
- main = xmonad $ gnomeConfig {
- modMask = mod4Mask
- , manageHook = myManageHook <+> manageHook gnomeConfig
- }
+ import XMonad
+ import XMonad.Config.Gnome
+
+ myManageHook = composeAll [
+ (className =? "Pidgin" <&&> title =? "Buddy List") --> doFloat
+ , (className =? "Gnome-panel" <&&> title =? "Run Application") --> doFloat
+ -- , (className =? "XEyes") --> doShift "7"
+ ]
+
+ main = xmonad $ gnomeConfig {
+ modMask = mod4Mask
+ , manageHook = myManageHook <+> manageHook gnomeConfig
+ }
The above example will make the pidgin buddy list and run application
dialog box float by default. The commented line is an example of how