Centers frontmost window in the main screen. Takes care of the special syntax for Sublime Text DEPENDS on cscreen binary app installed inside ~/bin/ it is easy to change anything here, but we need a Foundation app to tell us the geometry of the main window cscreen seems to be the most robust one