Skip to content

Instantly share code, notes, and snippets.

@photex
Created April 29, 2012 17:05
Show Gist options
  • Save photex/2551959 to your computer and use it in GitHub Desktop.
Save photex/2551959 to your computer and use it in GitHub Desktop.
Xmonad Ubuntu 12.04 Config
#! /bin/sh
exec gnome-session --session xmonad "$@"
[GNOME Session]
Name=Xmonad/GNOME
RequiredComponents=gnome-settings-daemon;gnome-panel;
RequiredProviders=windowmanager;
DefaultProvider-windowmanager=xmonad
[Desktop Entry]
Name=GNOME with Xmonad
Comment=A GNOME fallback mode session using xmonad as the window manager.
Exec=gnome-session-xmonad
TryExec=gnome-session
Icon=
Type=Application
import XMonad
import XMonad.Util.Run
import XMonad.Util.EZConfig (additionalKeys)
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ICCCMFocus
import XMonad.Config.Gnome
myManageHook = composeAll (
[ className =? "Unity-2d-panel" --> doIgnore
, className =? "Unity-2d-launcher" --> doFloat
])
main =
xmonad $ gnomeConfig { modMask = mod4Mask
, manageHook = manageDocks <+> myManageHook <+> manageHook gnomeConfig
, layoutHook = avoidStruts $ layoutHook defaultConfig
, logHook = takeTopFocus
} `additionalKeys` [ ((mod4Mask, xK_d), spawn "dmenu_run -b")
, ((mod4Mask, xK_Return), spawn "xfce4-terminal")
]
@Tarrasch
Copy link

For those who just want to blindly paste a few lines into their console, check out my gist too, which is strongly inspired by this gist. (Hope it's ok @photex)

@photex
Copy link
Author

photex commented Jul 24, 2012

Cool @Tarrasch, having a readme is a good idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment