Xmonad with Gnome

From Gentoo-en
Jump to: navigation, search

Xmonad is a dynamically tiling X11 window manager that is written and configured in Haskell.

Needed Packages

Essential packages

Emerge gnome-base/gnome, x11-wm/xmonad and x11-wm/xmonad-contrib.

emerge gnome xmonad xmonad-contrib

Optional packages

A nice xmobar surrogate is the xmonad-log-applet for gnome. A ebuild currently resided within the haskell overlay.

layman -a haskell

Emerge gnome-extra/xmonad-log-applet

emerge xmonad-log-applet --autounmask-write

~/xmonad.hs

Modify your xmonad.hs with the code provided by the sample xmonad.hs. You can finde sample configurations in the Xmonad config archive, also the configuring xmonad manual is a good starting point.

Note: A non-functional xmonad.hs may leave you with a desktop without any gnome-panels. You have to restart xdm manually in that case and check ~/.xsession-errors for errors

Add the XSession

gnome-xmonad.desktop

File: /usr/share/xsessions/gnome-xmonad.desktop
[Desktop Entry]
Enconding=UTF-8
Name=Gnome Xmonad
Comment=Gnome and Xmonad
Exec=/usr/sbin/xmonad-gnome-session
Icon=xmonad.png
Type=XSession

xmonad-gnome-session

File: /usr/sbin/xmonad-gnome-session
export WINDOW_MANAGER=xmonad
#xcompmgr -c -f -F &
gnome-session
chmod 755 /usr/sbin/xmonad-gnome-session

Composite Effects

Warning: Enabling composite effects can result in unexpected behavior on some software/hardware combinations.
See Bug 339716 for an example.

You can enable composite effects by uncommenting the xcompmgr line above. Check support with

xdpyinfo | grep Composite
and emerge x11-misc/xcompmgr.