Skip to content

Instantly share code, notes, and snippets.

@sciolizer
Created August 29, 2012 01:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sciolizer/3505923 to your computer and use it in GitHub Desktop.
Save sciolizer/3505923 to your computer and use it in GitHub Desktop.
Install xmonad with java patch
# Codification of discussion at http://code.google.com/p/xmonad/issues/detail?id=177
# Probably better to run each of these lines one by one instead of as a shell
# script, since there's a high probability of `cabal install` failing (usually
# fixed by installing the relevant libfoo-dev package)
# One person said these steps did not work.
# My Java version is:
# java version "1.6.0_34"
# Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
# Java HotSpot(TM) Server VM (build 20.9-b04, mixed mode)
# My xmonad file: https://github.com/sciolizer/dotfiles/blob/bb2e15cdd30ff6c3b468dd3c5ae6fbf4320c78e0/.xmonad/xmonad.hs
# Notice that it sets the window name to LG3D
darcs get http://code.haskell.org/xmonad --tag 0.10
darcs get http://code.haskell.org/XMonadContrib --tag 0.10
wget http://xmonad.googlecode.com/issues/attachment?aid=-7795625971991388144&name=track-currently-processing-event.dpatch&token=bBrhWxj8hrGSBkqhFRFD4Nf_mMU%3A1346202415361 -O track-current-processing-event.dpatch
cd xmonad
darcs apply ../track-current-processing-event.dpatch
cabal install
cd ../XMonadContrib
sed -i -e '/XMonad.Hooks.ICCCMFocus/d' xmonad-contrib.cabal
cabal install
# Recompile xmonad, and make sure to restart it (Meta+Q does not always work for me)
# You can see how long xmonad has been running with
# ps ax -o comm,etime | grep xmonad
@briangordon
Copy link

The wget URL didn't work for me. I got the dpatch from comment 33 here:

http://code.google.com/p/xmonad/issues/detail?id=177

And it works perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment