Talk:Xmonad/Using xmonad on Apple OSX

From HaskellWiki
Revision as of 22:41, 31 March 2009 by Chris (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I suggest the current text is put under the title Tiger and made Tiger specific (which it mostly is).

I'm not going to commit this immediately - among other things I need to check my instructions work.

Leopard

Installing Xmonad on OSX Leopard

  • ghc: You can get from haskell.org/ghc, MacPorts, or Fink. Fink has an older version of ghc -- one that will work with xmonad (for now?), but will make baby xmonad cry.
  • X11 lib: Get from hackage.haskell.org, build using the standard Cabal steps. Make sure that Xinerama gets detected in the configure step. If you see a "present but not compiled" warning, that might be okay (it worked for me). --I don't remember having to do this step
  • -- I'll put in a step about installing Cabal
  • xmonad: Get from hackage.haskell.org, build using the standard Cabal steps.

Updating X.org

I recommend updating X.org. The development version includes features such as fullscreen support. It is likely that a Leopard update will eventually make this step unnecessary. The latest version can be found at macosforge http://xquartz.macosforge.org/trac/wiki .

Configuring Your .xinitrc to Run XMonad

write:

source ~/.bash_profile
export USERWM=`which xmonad`
exec /usr/X11/lib/X11/xinit/xinitrc

to ~/.xinitrc

Make sure your PATH variable is set up correctly in ~/.bash_profile. Xmonad and dmenu should be in the path. Anything you want to launch from dmenu should be in the path. The relevant part of my .bash_profile is here (although not all the paths may be applicable to you)

PATH="/usr/local/bin":$PATH
PATH="/usr/local/sbin":$PATH
PATH="/opt/local/bin:/opt/local/sbin":$PATH
PATH="/sw/soylatte16-i386-1.0.3/bin/":$PATH
PATH="/Users/chris/.cabal/bin":$PATH
PATH="/opt/local/libexec":$PATH
export PATH

Configuring

  • If you are using a recent version of xorg the menu bar shouldn't get in the way (fullscreen or otherwise). The Dock however will, I recommend hiding the Dock or always working in fullscreen mode.
  • You can start X11 (and Xmonad) by running any program that uses X, or by running X11.app. If you run X11.app a default program is started. You can configure this program by running
     $ defaults write org.x.X11 "app_to_run" "gnome-terminal" 
    (replace gnome-terminal with a program of your choice).

Discussion

  • XMonad and Vimperator (Firefox 3 extension) make a powerful combination on Linux. I cannot achieve this on OSX because the newest X11 version of Firefox I can install is version 2. If anyone has any hints on installing Firefox 3 X11 please share them.