-
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
dwm
from Homebrew,brew install dwm
. This makes a bunch of necessary tweaks to the DWM configuration. -
Add the following script to $PATH, name it
dwm-launch
andchmod 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
uxterm
is launched as a non-login shell, which is undesirable. To launchuxterm
as a login shell, add the following to~/.Xdefaults
:XTerm*foreground: white XTerm*background: black
-
Start X11.app.
dwm
should start. You need to change a few settings to make copy/paste between X11 and Aqua work. Go toX11 -> Preferences...
and enableEmulate three button mouse
underInput
. Next, enable everything underPasteboard
.In X11 you copy text by selecting it with the mouse, and you paste by pressing
Alt
and 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
)
Managed to launch it but i get this kind of message after running it several minutes:
"X connection to /tmp/launch-QbCIDa/org.macosforge.xquartz:0 broken (explicit kill or server shutdown).
xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server "/tmp/launch-QbCIDa/org.macosforge.xquartz:0"
xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server "/tmp/launch-QbCIDa/org.macosforge.xquartz:0"
xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server "/tmp/launch-QbCIDa/org.macosforge.xquartz:0"
wqas-Mac-mini:~ wqa$
wqas-Mac-mini:~ wqa$ X connection to /tmp/launch-QbCIDa/org.macosforge.xquartz:0 broken (explicit kill or server shutdown).
"