I use XFCE 4.8. I'd like new terminal windows to be wider by default (when I start a new terminal instance), but can't find where to configure this. Do you happen to know?
6 Answers
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:
Place a short and wide terminal window on upper left-hand side of the display:
xfce4-terminal --geometry 140x20+50+50Place a square terminal window in the lower left-hand corner of the display:
xfce4-terminal --geometry 100x40+40+500Place a square terminal window in the upper right-hand corner of the display:
xfce4-terminal --geometry 100x40+1500+40Place a short and wide terminal window on lower right-hand side of the display:
xfce4-terminal --geometry 140x20+1500+500
How to make this setting permanent:
"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.
- 479
-
The last paragraph is confusing. I'm not sure what the terminals .desktop file is named. And if i need to reboot. There are also multiple answers in that reference. And it doesn't seem to work. – john-jones May 28 '22 at 09:31
Open ~/.config/xfce4/terminal/terminalrc (in older versions ~/.config/Terminal/terminalrc)
and change the line with MiscDefaultGeometry to e.g.
MiscDefaultGeometry=X*Y*Z with your default size.
- 5,953
- 7
- 42
- 71
- 7,573
-
3This is not working at xfce 4.10. New terminals totally ignores this setting – palmic May 17 '13 at 09:26
@palmic is correct, in xfce 4.10 the ~/.config/Terminal/terminalrc is ignored. Instead, configure .config/xfce4/terminal/terminalrc. It has the same syntax.
More information in docs for xfce4-terminal(1) in ENVIRONMENT section.
- 79,293
Right click the terminal Icon on the panel and choose Properties. In dialog windows that opens choose the edit icon (bottom icon which looks like a pencil with three dots). Another dialog box will open choose Command box and change from lxterminal to
lxterminal --geometry=95x20
or what ever size columns and rows you like
- 11
On Ubuntu 14.04 setting the options via "preferences" window didn't work for me.
Window height is not honored.
Editing the config file did work.
Config file location.
~/.config/xfce4/terminal/terminalrc
- 101