-
Install XQuartz (http://xquartz.macosforge.org) which is the development version of the X11.app that ships with OS X, which means it is way more up to date. I have had some weird issues with X11.app v. 2.3-something. XQuartz 2.5.0 fixed that.
-
Install
dwmfrom Homebrew,brew install dwm. This makes a bunch of necessary tweaks to the DWM configuration. -
Add the following script to $PATH, name it
dwm-launchandchmod 755:cd ~ while true do xsetroot -name "`date +"%Y-%m-%d %H:%M"`" sleep 5 done & exec /usr/local/bin/dwm -
Add the following to
~/.xinitrc:PATH=$PATH:/usr/local/bin xsetroot -solid '#4a525a' exec >>~/.xsession-errors 2>&1 ~/bin/dwm-launch -
Add the following to
~/.Xmodmap:remove Mod2 = Meta_L add Mod1 = Meta_L -
X11
uxtermis launched as a non-login shell, which is undesirable. To launchuxtermas a login shell, add the following to~/.Xdefaults:XTerm*foreground: white XTerm*background: black -
Start X11.app.
dwmshould start. You need to change a few settings to make copy/paste between X11 and Aqua work. Go toX11 -> Preferences...and enableEmulate three button mouseunderInput. Next, enable everything underPasteboard.In X11 you copy text by selecting it with the mouse, and you paste by pressing
Altand clicking the mouse.
- After some time you might not be able to open new terminals. This has
something to do with permissions, and can be fixed with
xhost +. Do you know a permanent solution? (Possibly fixed with one of the settings underX11 -> Preferences… -> Security)
@stanislaw @adrian-gierakowski I had the same error message, but logging out and logging in again solved it.
Make sure you don't save the windows when you log out, or else it won't truly restart everything.