How to make VMware auto-fit guest windows work with Xmonad?

I use VMware workstation to run Debian Linux on Windows XP. But I don't use the standard desktop environment like gnome or KDE. So after I installed vmware tools in the guest OS, the cool features like auto-fit guest resolution with the workstation window size does not work.

I thought: there must be a simple solution. So I googled and googled. Nothing I can found. Turns out, after utilizing VMware internal resource, I found it is as simple as running the in-guest agent program "vmware-user" in your .xsession. So here is my .xsession file, which I run xmonad and urxvt as my main desktop environment.

xsetroot -solid gray
xsetbg -center /usr/share/pixmaps/debian-logo.png
xset b off
unclutter -idle 1 &
vmware-user &
urxvt &
xmonad

Comments:

Have comments? Email them to me. I will post it here.