public
Last active

Install xmonad with java patch

  • Download Gist
install-xmonad-with-java-patch.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# 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

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!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.