How to move/resize xfce4-terminal using the command line?

Solution 1:

The man page for xfce4-terminal specifies using the --geometry option to set the size and placement of a terminal.

This flag uses the options "-geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window."

Refer to the "Geometry Specifications" section of the man page for X (man X).

Here are several examples of xterm placement:

  1. Place a short and wide terminal window on upper left-hand side of the display:

    xfce4-terminal --geometry 140x20+50+50

  2. Place a square terminal window in the lower left-hand corner of the display:

    xfce4-terminal --geometry 100x40+40+500

  3. Place a square terminal window in the upper right-hand corner of the display:

    xfce4-terminal --geometry 100x40+1500+40

  4. Place a short and wide terminal window on lower right-hand side of the display:

    xfce4-terminal --geometry 140x20+1500+500

If you would like to make this setting permanent, follow these instructions:

"copy the terminal launcher (terminal's .desktop file) from /usr/share/applications/ to ~/.local/share/applications/ and edit the Exec field accordingly" as mentioned in the answer here.