I recently started using dwm, specifically the dwm-gottox branch (or as it's sometimes known as dwm-gtx)

The basic requirement is that you have xcode on osx leopard installed so you can compile up dwm and a recent version of xquartz 2.3.2.1 or newer. The instructions aren't going to be detailed here, they are just an outline of what I needed to do to make it work.

The default config for dwm is probably fine for most people, what I did find was that Mod1Mask didn't really work under x11 as I had expected it too. You will need the follow xmodmap config file (add it to your xinitrc) which remaps some keys. I got this from a prettier terminal in osx part 2

! left apple key becomes alt 
! and right one stays meta
! remap f12 to insert cause i just can't figure out which keycombo should
! give that to me
clear mod1
clear mod2
keycode 71 = Alt_L
add mod2 = Alt_L
keycode 63 = Meta_L
add mod1 = Meta_L
keycode 119 = Insert

I also remapped f12 to insert, since I couldn't figure what keycombo was for insert under x11. One other note was, I had to disable "Enable key equivalents under X11". I also turned on the emulation for a 3 button mouse which works fine on my macbook (with only one mouse button)

In conjunction with dwm, I also installed dmenu for launching apps, and also firefox from macports. I've been mulling over configuring up rxvt-unicode with the mark and yank plugin for rxvt unicode but my current setup is adequate for now.

You're probably wondering why would I want to do this on my mac? Well, mac laptops are just nicer than linux ones, stuff just works from a multimedia point of view, and I like the network configuration system which is handy for conferences and travelling etc... But I also work alot on the command line on remote hosts, and I prefer not to need to mess around with laying out my windows and needing to use the mouse too often. So it was natural that I would want this type of dwm on osx x11 type setup. I thought I may as well, since I use this for my desktop in work.

Bookmark and Share