Personal tools

Xmonad/Using xmonad on Apple OSX

From HaskellWiki

< Xmonad(Difference between revisions)
Jump to: navigation, search
m (typo: easy)
(re-formatting, add note about full-screen mode)
Line 10: Line 10:
 
here!
 
here!
   
+
== Configuring Your .xinitrc to Run XMonad ==
-------
+
<ol>
Some instructions for using XMonad:
+
<li>Build and install XMonad like you would any other Haskell library.</li>
+
<li>do the following on the Terminal:
1. Build and install XMonad like you would any other Haskell library.
+
<pre>
 
2. do the following on the Terminal:
 
 
$ cp /private/etc/X11/xinit/xinitrc ~/.xinitrc
 
$ cp /private/etc/X11/xinit/xinitrc ~/.xinitrc
 
$ chmod +w ~/.xinitrc
 
$ chmod +w ~/.xinitrc
 
$ vim ~/.xinitrc
 
$ vim ~/.xinitrc
 
#comment out the line 'exec quartz-wm' and add PATH-TO-XMONAD/xmonad after it.
 
#comment out the line 'exec quartz-wm' and add PATH-TO-XMONAD/xmonad after it.
  +
</pre></li>
  +
<li>Open X11. XMonad should be running now.</li>
  +
</ol>
   
3. Open X11. XMonad should be running now.
+
== Full screen mode ==
  +
I highly recommend running X11 in full-screen mode. To enable this, open the Preferences dialog for the X11 app, check the checkbox, and restart X11. This way, you don't have to worry about stupid things like the dock / menubar / OS X apps getting in your way.
   
  +
'''Leopard users''': X11 full-screen mode (along with many other things) is [http://forums.macosxhints.com/showthread.php?t=80171 broken] on Leopard. You can follow [http://lists.apple.com/archives/x11-users/2007/Nov/msg00005.html these instructions] to install Tiger's X11 on Leopard, however. (Both versions can coexist.)
   
Note: You won't be able to use xmonad to manage normal OS X apps, but it is pretty easy to install a decent set of X11 apps. If you have MacPorts installed you can install the packages firefox-x11, rxvt-unicode, unclutter, and 'vim +gtk2' (the +gtk2 variant for PRIMARY/CLIPBOARD support) to get started.
+
== Does Not Replace Quartz, Silly ==
+
You won't be able to use xmonad to manage normal OS X apps. X11 will just be another OS X sitting in your dock that you can switch to. However, it is pretty easy to install a decent set of X11 apps. If you have MacPorts installed you can install the packages firefox-x11, rxvt-unicode, unclutter, and 'vim +gtk2' (the +gtk2 variant for PRIMARY/CLIPBOARD support) to get started.
   
 
== Potential Configuration Problems ==
 
== Potential Configuration Problems ==
Line 31: Line 35:
 
Possible solutions:
 
Possible solutions:
   
1. http://forums.macosxhints.com/showthread.php?s=&threadid=12382
+
# http://forums.macosxhints.com/showthread.php?s=&threadid=12382
+
# http://forums.macosxhints.com/showthread.php?t=14279
2. http://forums.macosxhints.com/showthread.php?t=14279
+
# Or just hardwire the path into xmonad itself - change "ghc" -> "/usr/local/bin/ghc" (or whatever) in Core.hs before building XMonad.
 
3. Or just hardwire the path into xmonad itself - change "ghc" -> "/usr/local/bin/ghc" (or whatever) in Core.hs before building XMonad.
 
   
   

Revision as of 09:29, 3 May 2008

xmonad runs well on Apple OSX machines, and needs little work to be useful. This page collects advice and information on using xmonad successfully with OSX.

If you're using xmonad on a mac, add details about your configuration here!

Contents

1 Configuring Your .xinitrc to Run XMonad

  1. Build and install XMonad like you would any other Haskell library.
  2. do the following on the Terminal:
         $ cp /private/etc/X11/xinit/xinitrc ~/.xinitrc
         $ chmod +w ~/.xinitrc
         $ vim ~/.xinitrc 
         #comment out the line 'exec quartz-wm' and add PATH-TO-XMONAD/xmonad after it.
    
  3. Open X11. XMonad should be running now.

2 Full screen mode

I highly recommend running X11 in full-screen mode. To enable this, open the Preferences dialog for the X11 app, check the checkbox, and restart X11. This way, you don't have to worry about stupid things like the dock / menubar / OS X apps getting in your way.

Leopard users: X11 full-screen mode (along with many other things) is broken on Leopard. You can follow these instructions to install Tiger's X11 on Leopard, however. (Both versions can coexist.)

3 Does Not Replace Quartz, Silly

You won't be able to use xmonad to manage normal OS X apps. X11 will just be another OS X sitting in your dock that you can switch to. However, it is pretty easy to install a decent set of X11 apps. If you have MacPorts installed you can install the packages firefox-x11, rxvt-unicode, unclutter, and 'vim +gtk2' (the +gtk2 variant for PRIMARY/CLIPBOARD support) to get started.

4 Potential Configuration Problems

You may have problems with configuring XMonad under OSX - if you see the "error detected while loading xmonad configuration" error message but with no error output, it could be because the PATH inherited by XMonad doesn't include ghc (eg by default it won't include /usr/local/bin).

Possible solutions:

  1. http://forums.macosxhints.com/showthread.php?s=&threadid=12382
  2. http://forums.macosxhints.com/showthread.php?t=14279
  3. Or just hardwire the path into xmonad itself - change "ghc" -> "/usr/local/bin/ghc" (or whatever) in Core.hs before building XMonad.