Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Show comment
Hide comment
@Tarrasch

Tarrasch Jul 22, 2012

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)

Tarrasch commented Jul 22, 2012

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

This comment has been minimized.

Show comment
Hide comment
@photex

photex Jul 24, 2012

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

Owner

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