Tell me, please, how to set the geometry of the terminal window when running under X11? "Geometry" will be considered the initial offset from the upper left corner in pixels, and size. Size - preferably in familiarity in width and height, if not, at least in pixels. In other words, where is the coveted config?

Initial data:

  • Linux funtoo
  • xfce4
  • monospaced fonts no difference

    2 answers 2

    The question is quite general, because the answer can only be very superficial.


    The x-client window geometry is specified in the form ширина x высота + смещение-по-оси-x + смещение-по-оси-y ( x -axis is usually horizontal, y is usually vertical, coordinate +0+0 is usually the upper left corner screen). for example: 100x100+100+100 .

    This is described, for example, in $ man X ( GEOMETRY SPECIFICATIONS section ).

    but how to transfer this information to the x-client (and whether it is possible to transfer it at all) depends on the client itself.


    for example, the gnome-terminal and xfce-terminal programs (like many other x clients) have the option --geometry=значение :

     $ gnome-terminal --geometry=100x100+100+100 

    and the xterm program has the option -geometry значение

     $ xterm -geometry 100x100+100+100 

    In addition to the above, it is worth mentioning:

    • about the file ~/.Xresources ( ~/.Xdefaults ) and the xrdb program, which can be used by de / wm to load various resources, including instructions on the geometry of a window;
    • about the fact that de / wm can make independent decisions about the location of the created windows, ignoring the wishes of the program creating the window.
    • The question is “not common.” Clearly defined - Linux Funtoo & xfce4! .XDefaults tried, the reaction is zero. "ignoring the wishes of the program" - if possible, preferably proof. - Majestio 4:03
    • ... although there are many terminals ... we are talking about xfce4-terminal 0.8.1 - Majestio
    • I was able to set the terminal geometry in the terminal settings (the question is where it is stored) ... but I haven’t mastered the window displacement yet, help, pls) - Majestio
    • @Majestio, preferably proof is the most prominent example . - aleksandr barakin
    • "Tile managers", if I'm not confused with terminology - this is a "separate", imho dull song. Moreover, the original placement of windows - must be original from the word "in general" (there are no windows there, there are frames). - Majestio

    Partial solution

    The "geometry" xfce4-terminal is stored in the file ~ / .config / xfce4 / terminal / terminalrc, in the variable "MiscDefaultGeometry".

    In a suspended state - the question of determining the offset of the terminal window from the upper left corner, if it is possible at all.