-
Install XQuartz.
-
Install dwm using Homebrew (or whatever):
brew install dwm
-
Create a
xinitrc.d
script for dwm:mkdir ~/.xinitrc.d echo "USERWM=/usr/local/bin/dwm" > ~/.xinitrc.d/00-dwm.sh chmod +x ~/.xinitrc.d/*
-
Run XQuartz, dwm should start.
It might be useful to tweak some XQuartz settings (just press ⌘,) like full screen, clipboard, etc.
Do you still have
~/.xinitrc
? If so, try to remove it..//edit: I've noticed that you try to run it manually - from xterm. That's probably not gonna work because you already have
quartz-wm
(the built-in wm) running - which is likely the reason why dwm is complaining. Just try the steps above and make sure you don't have a.xinitrc
. It worked for me right now.