Change primary display through command line Is it possible to change the primary screen for a Mac through command line? 

The traditional way of doing this is from System Preferences > Displays and dragging the white menu bar on the top, between screens.

I have different setups at home and work and sometimes I need the primary display to be different. Rather than having to change this by dragging/dropping as explained above, I would like to run a script through a program like Alfred/QuickSilver and then just toggle/switch my primary displays.

If i could do this through command line, it would be awesome. There is this program called cscreen that allows me to do this, but it only runs on PowerMacs.
cscreen actually runs on Intel-based Mac as well. You should be able to change primary display through it.