A very small Window manager
github.com
Basic window manager written in C in 45 lines of
X-code.
github.com
20:23:46 $ gcc piwm.c -o piwm -lX11 -lXrandr ld: library not found for -lX11 collect2: ld returned 1 exit status
There may also be homebrew packages for the X11 headers/libs, but I believe XQuartz is the current popular way to do it.