I'm trying to launch xcalc from the command line, in my embedded Unix, and I would like it to start centered on the screen, is there a way?
By the way, I'm using WindowMaker, if it makes any difference..
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You can usually add a
-geometry argument to specify the size a window should be from the command line, but WHERE it gets placed is up to the window manager. The program itself can request this but usually there are not command line argument for where to send it. You can fetch the window ID and use another X utility to request a placement, or you can teach your window manager to recognize that window and place it at a given location. Window managers reserve the right to place things wherever they feel like, the things the programs ask for are only used as hints.