Skip to content

Instantly share code, notes, and snippets.

@osteotek
Forked from Tarrasch/README.md
Created August 24, 2012 20:16
Show Gist options
  • Save osteotek/3455183 to your computer and use it in GitHub Desktop.
Save osteotek/3455183 to your computer and use it in GitHub Desktop.
Unity plus xmonad configuration (Ubuntu 12.04)

What

This is my xmonad+unity panel config. With this config, you'll have a well integrated panel from unity but still have xmonad as your window manager with your gnome apps, including the pretty gnome-terminal (for those too lazy to learn xmoobar).

This config doesn't have the unity launcher, mainly becuse it causes windows to be unfloatable, besides I'm not fond of it anymore.

How

Copy and paste these lines (or understand what it does and do it manually).

GISTDIR='https://raw.github.com/gist/3156991'
mv ~/.xinitrc{,.backup}
curl "$GISTDIR/xinitrc"              |      tee ~/.xinitrc
curl "$GISTDIR/xmonad.session"       | sudo tee /usr/share/gnome-session/sessions/xmonad.session
curl "$GISTDIR/gnome-xmonad.desktop" | sudo tee /usr/share/xsessions/gnome-xmonad.desktop

Then log out and choose the custom login session (not the xmonad one, we want it to read from the .xinitrc)

Thanks to

Others gisters who basically did what I did, but I created a nice readme.

[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
#! /bin/sh
exec gnome-session --session xmonad "$@"
[GNOME Session]
Name=Xmonad/Unity
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;panel;
DefaultProvider-windowmanager=xmonad
DefaultProvider-panel=unity-2d-panel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment