Last active
October 19, 2015 22:34
-
-
Save jsjohnst/ced4d1d7cae593771dee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install: http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.8.dmg | |
2. Then launch XQuartz and open the preferences. On the output tab, click "Full-screen mode" | |
3. Follow instructions below to install and setup xmonad | |
$ brew install Caskroom/cask/haskell-platform | |
$ vim ~/.bash_profile | |
export PATH="$HOME/Library/Haskell/bin:$PATH" | |
$ PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:$PKG_CONFIG_PATH \ | |
LIBRARY_PATH=/opt/X11/lib:$LIBRARY_PATH \ | |
CPPFLAGS="-I/opt/X11/include" \ | |
LDFLAGS="-L/opt/X11/lib" \ | |
cabal install xmonad xmonad-contrib | |
$ mkdir -p ~/.xinitrc.d ~/.xmonad | |
$ vim ~/.xinitrc.d/90-xmonad.sh | |
#!/bin/sh | |
USERWM=$HOME/Library/Haskell/bin/xmonad | |
$ chmod +x ~/.xinitrc.d/90-xmonad.sh | |
$ vim ~/.xmonad/xmonad.hs | |
-- sample config | |
-- Some examples: https://wiki.haskell.org/Xmonad/Config_archive | |
import XMonad | |
main = do | |
xmonad $ defaultConfig | |
{ | |
modMask = mod4Mask -- Rebind Mod to the Cmd key | |
} | |
$ xmonad --recompile | |
After that, run XQuartz and launch a new xterm. | |
You will likely have to toggle full screen mode (Cntrl-Cmd-A or via the app menu) | |
to get anything to appear. | |
Maybe Interesting to look into: | |
http://brianmckenna.org/blog/osxmonad_library |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment