How to set default startup window size for X11 application (e.g. xmgrace)

I tried to run the method .Xresourceswithout success (see the comment here from the corresponding question)

So, what do I need to change to make sure my Xmgrace window is a certain size? When I start xmgrace myplot.agr, it always ends with a 680x700 window. I would like to set it to something else, since I always have to resize and scroll clicks (Xmgrace does not like scroll wheels).

Any thoughts or ideas are welcome.

+4
source share
1 answer

( ) xmgrace $HOME/.Xdefaults:

XMgrace*geometry: 1050x750

( )

XMgrace*mainWin.geometry: 1050x750

, geometry .

, , xmgrace. , , () /src/xmgrace.c

String fallbackResourcesHighRes[] = {
    "XMgrace*mainWin.width: 680",
    "XMgrace*mainWin.height: 700",
    "XMgrace*fontList:-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*",
    "XMgrace.consoleDialog*text.fontList:-*-courier-medium-r-normal-*-12-*-*-*->
    "XMgrace*HContainer.marginHeight: 3",
    "XMgrace*VContainer.marginHeight: 3",
    NULL
};

:

screen = DefaultScreenOfDisplay(disp);
if (HeightOfScreen(screen) < 740) {
    lowres = TRUE;
}

( ) X. -geometry X toolkit, , xterm.

+6

All Articles