Set terminal size permanently
I click in terminal: terminal->132x43 to change terminal size but after each reboot terminal size is set to default setting and I have to change it again. How to set it permanently?
command-line
add a comment |
I click in terminal: terminal->132x43 to change terminal size but after each reboot terminal size is set to default setting and I have to change it again. How to set it permanently?
command-line
add a comment |
I click in terminal: terminal->132x43 to change terminal size but after each reboot terminal size is set to default setting and I have to change it again. How to set it permanently?
command-line
I click in terminal: terminal->132x43 to change terminal size but after each reboot terminal size is set to default setting and I have to change it again. How to set it permanently?
command-line
command-line
asked Oct 7 '11 at 5:53
scdmbscdmb
4122613
4122613
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
You should go to Edit->Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions.
add a comment |
Ubuntu 16.04 and later
In Ubuntu 16.04 open the terminal, select Edit->Profile Preferences -> General tab and change the values for columns and rows after where it says Initial terminal size:.

16.04
In Ubuntu 17.10 and later open the terminal, select Edit->Preferences -> Default profile -> Text tab and change the values for columns and rows after where it says Initial terminal size:.

17.10 and later
1
In Ubuntu 18.04, the dialog layout differs slightly. Upon entering the Preferences dialog,Unnamedappears in the left-hand column, underProfiles, and selecting it yields a view similar to that pictured in the screenshot.
– Ben Johnson
May 4 '18 at 1:54
add a comment |
Press Ctrl + Alt + t to open a terminal. Make sure the terminal is maximized (if it isn't already) by clicking on the right-most icon at the top of the window (the square in the circle). At the top of the window you should go to Edit -> Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions. If you would like unlimited scrolling, go to the Scrolling tab and put a check in the Unlimited box. Hope this helps!
1
What is the benefit of ensuring that the terminal window is maximized prior to setting the custom default terminal size? From what I'm able to determine, the terminal's current size has no effect on theInitial terminal sizevalues.
– Ben Johnson
May 4 '18 at 1:39
add a comment |
In older versions you can find this setting in the /usr/share/vte/termcap/xterm file.
add a comment |
Here's a little script to really permanently set a window size, regardless of gnome-terminal profile that you are currently using. This works on all windows belonging to gnome-terminal
To make it work, you need two things: 1) make sure you have wmctrl installed and 2) run this script as one of the Startup Applications.
Notice that line with wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650 sets size and position according to gravity,x-position,y-position,width,height format
#!/bin/bash
# Author: Serg Kolo
# date: Sat, Sept 19,2015
# Purpose: a script to permanently set
# terminal window, size
# Written for: http://askubuntu.com/q/64652/295286
APP_CLASS="gnome-terminal.Gnome-terminal"
while [ 1 ]; do
WIN_ID=$(printf %x $(xdotool getactivewindow))
WM_CLASS=$(wmctrl -lx | awk -v search=$WIN_ID '{ if($1~search) print $3 }')
WMCTRL_ID=$( wmctrl -lx | awk -v search2=$WIN_ID '$0~search2 {print $1}' )
if [ $WM_CLASS = $APP_CLASS ]; then
wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650
fi
sleep 0.25
done
add a comment |
Linux Mint 19.1 (Xfce)
- Open Linux Mint Menu button
- Select
Settings
- Select
Xfce Terminal
- Navigate the new
Terminal preferenceswindow to theAppearanceTab. - Set the Default Geometry, to your preference.
- Close and Enjoy.
However, the user config file is located in:~/.config/xfce4/terminal/terminalrc
and the config item you need (for Xfce) is:
MiscDefaultGeometry.
But you can edit faster from the command line with:
sed -E 's/MiscDefaultGeometry=.+$/MiscDefaultGeometry=140x40/' -i ~/.config/xfce4/terminal/terminalrc
Where we have set the size to 140x40 as an example.
For those down-voting, please provide an explanation out of common courtesy.
– not2qubit
Feb 11 at 11:57
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f64652%2fset-terminal-size-permanently%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
You should go to Edit->Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions.
add a comment |
You should go to Edit->Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions.
add a comment |
You should go to Edit->Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions.
You should go to Edit->Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions.
answered Oct 7 '11 at 7:16
enzotibenzotib
65k7136155
65k7136155
add a comment |
add a comment |
Ubuntu 16.04 and later
In Ubuntu 16.04 open the terminal, select Edit->Profile Preferences -> General tab and change the values for columns and rows after where it says Initial terminal size:.

16.04
In Ubuntu 17.10 and later open the terminal, select Edit->Preferences -> Default profile -> Text tab and change the values for columns and rows after where it says Initial terminal size:.

17.10 and later
1
In Ubuntu 18.04, the dialog layout differs slightly. Upon entering the Preferences dialog,Unnamedappears in the left-hand column, underProfiles, and selecting it yields a view similar to that pictured in the screenshot.
– Ben Johnson
May 4 '18 at 1:54
add a comment |
Ubuntu 16.04 and later
In Ubuntu 16.04 open the terminal, select Edit->Profile Preferences -> General tab and change the values for columns and rows after where it says Initial terminal size:.

16.04
In Ubuntu 17.10 and later open the terminal, select Edit->Preferences -> Default profile -> Text tab and change the values for columns and rows after where it says Initial terminal size:.

17.10 and later
1
In Ubuntu 18.04, the dialog layout differs slightly. Upon entering the Preferences dialog,Unnamedappears in the left-hand column, underProfiles, and selecting it yields a view similar to that pictured in the screenshot.
– Ben Johnson
May 4 '18 at 1:54
add a comment |
Ubuntu 16.04 and later
In Ubuntu 16.04 open the terminal, select Edit->Profile Preferences -> General tab and change the values for columns and rows after where it says Initial terminal size:.

16.04
In Ubuntu 17.10 and later open the terminal, select Edit->Preferences -> Default profile -> Text tab and change the values for columns and rows after where it says Initial terminal size:.

17.10 and later
Ubuntu 16.04 and later
In Ubuntu 16.04 open the terminal, select Edit->Profile Preferences -> General tab and change the values for columns and rows after where it says Initial terminal size:.

16.04
In Ubuntu 17.10 and later open the terminal, select Edit->Preferences -> Default profile -> Text tab and change the values for columns and rows after where it says Initial terminal size:.

17.10 and later
edited May 4 '18 at 2:33
answered Jul 16 '17 at 7:49
karelkarel
60.6k13132155
60.6k13132155
1
In Ubuntu 18.04, the dialog layout differs slightly. Upon entering the Preferences dialog,Unnamedappears in the left-hand column, underProfiles, and selecting it yields a view similar to that pictured in the screenshot.
– Ben Johnson
May 4 '18 at 1:54
add a comment |
1
In Ubuntu 18.04, the dialog layout differs slightly. Upon entering the Preferences dialog,Unnamedappears in the left-hand column, underProfiles, and selecting it yields a view similar to that pictured in the screenshot.
– Ben Johnson
May 4 '18 at 1:54
1
1
In Ubuntu 18.04, the dialog layout differs slightly. Upon entering the Preferences dialog,
Unnamed appears in the left-hand column, under Profiles, and selecting it yields a view similar to that pictured in the screenshot.– Ben Johnson
May 4 '18 at 1:54
In Ubuntu 18.04, the dialog layout differs slightly. Upon entering the Preferences dialog,
Unnamed appears in the left-hand column, under Profiles, and selecting it yields a view similar to that pictured in the screenshot.– Ben Johnson
May 4 '18 at 1:54
add a comment |
Press Ctrl + Alt + t to open a terminal. Make sure the terminal is maximized (if it isn't already) by clicking on the right-most icon at the top of the window (the square in the circle). At the top of the window you should go to Edit -> Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions. If you would like unlimited scrolling, go to the Scrolling tab and put a check in the Unlimited box. Hope this helps!
1
What is the benefit of ensuring that the terminal window is maximized prior to setting the custom default terminal size? From what I'm able to determine, the terminal's current size has no effect on theInitial terminal sizevalues.
– Ben Johnson
May 4 '18 at 1:39
add a comment |
Press Ctrl + Alt + t to open a terminal. Make sure the terminal is maximized (if it isn't already) by clicking on the right-most icon at the top of the window (the square in the circle). At the top of the window you should go to Edit -> Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions. If you would like unlimited scrolling, go to the Scrolling tab and put a check in the Unlimited box. Hope this helps!
1
What is the benefit of ensuring that the terminal window is maximized prior to setting the custom default terminal size? From what I'm able to determine, the terminal's current size has no effect on theInitial terminal sizevalues.
– Ben Johnson
May 4 '18 at 1:39
add a comment |
Press Ctrl + Alt + t to open a terminal. Make sure the terminal is maximized (if it isn't already) by clicking on the right-most icon at the top of the window (the square in the circle). At the top of the window you should go to Edit -> Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions. If you would like unlimited scrolling, go to the Scrolling tab and put a check in the Unlimited box. Hope this helps!
Press Ctrl + Alt + t to open a terminal. Make sure the terminal is maximized (if it isn't already) by clicking on the right-most icon at the top of the window (the square in the circle). At the top of the window you should go to Edit -> Profile Preferences, General page and check Use custom default terminal size, and then set your preferred horizontal and vertical dimensions. If you would like unlimited scrolling, go to the Scrolling tab and put a check in the Unlimited box. Hope this helps!
answered Sep 19 '15 at 16:44
Jimi MelloJimi Mello
311
311
1
What is the benefit of ensuring that the terminal window is maximized prior to setting the custom default terminal size? From what I'm able to determine, the terminal's current size has no effect on theInitial terminal sizevalues.
– Ben Johnson
May 4 '18 at 1:39
add a comment |
1
What is the benefit of ensuring that the terminal window is maximized prior to setting the custom default terminal size? From what I'm able to determine, the terminal's current size has no effect on theInitial terminal sizevalues.
– Ben Johnson
May 4 '18 at 1:39
1
1
What is the benefit of ensuring that the terminal window is maximized prior to setting the custom default terminal size? From what I'm able to determine, the terminal's current size has no effect on the
Initial terminal size values.– Ben Johnson
May 4 '18 at 1:39
What is the benefit of ensuring that the terminal window is maximized prior to setting the custom default terminal size? From what I'm able to determine, the terminal's current size has no effect on the
Initial terminal size values.– Ben Johnson
May 4 '18 at 1:39
add a comment |
In older versions you can find this setting in the /usr/share/vte/termcap/xterm file.
add a comment |
In older versions you can find this setting in the /usr/share/vte/termcap/xterm file.
add a comment |
In older versions you can find this setting in the /usr/share/vte/termcap/xterm file.
In older versions you can find this setting in the /usr/share/vte/termcap/xterm file.
edited Sep 27 '12 at 12:28
Peachy
5,06672843
5,06672843
answered Sep 21 '12 at 21:01
CalmariusCalmarius
376317
376317
add a comment |
add a comment |
Here's a little script to really permanently set a window size, regardless of gnome-terminal profile that you are currently using. This works on all windows belonging to gnome-terminal
To make it work, you need two things: 1) make sure you have wmctrl installed and 2) run this script as one of the Startup Applications.
Notice that line with wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650 sets size and position according to gravity,x-position,y-position,width,height format
#!/bin/bash
# Author: Serg Kolo
# date: Sat, Sept 19,2015
# Purpose: a script to permanently set
# terminal window, size
# Written for: http://askubuntu.com/q/64652/295286
APP_CLASS="gnome-terminal.Gnome-terminal"
while [ 1 ]; do
WIN_ID=$(printf %x $(xdotool getactivewindow))
WM_CLASS=$(wmctrl -lx | awk -v search=$WIN_ID '{ if($1~search) print $3 }')
WMCTRL_ID=$( wmctrl -lx | awk -v search2=$WIN_ID '$0~search2 {print $1}' )
if [ $WM_CLASS = $APP_CLASS ]; then
wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650
fi
sleep 0.25
done
add a comment |
Here's a little script to really permanently set a window size, regardless of gnome-terminal profile that you are currently using. This works on all windows belonging to gnome-terminal
To make it work, you need two things: 1) make sure you have wmctrl installed and 2) run this script as one of the Startup Applications.
Notice that line with wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650 sets size and position according to gravity,x-position,y-position,width,height format
#!/bin/bash
# Author: Serg Kolo
# date: Sat, Sept 19,2015
# Purpose: a script to permanently set
# terminal window, size
# Written for: http://askubuntu.com/q/64652/295286
APP_CLASS="gnome-terminal.Gnome-terminal"
while [ 1 ]; do
WIN_ID=$(printf %x $(xdotool getactivewindow))
WM_CLASS=$(wmctrl -lx | awk -v search=$WIN_ID '{ if($1~search) print $3 }')
WMCTRL_ID=$( wmctrl -lx | awk -v search2=$WIN_ID '$0~search2 {print $1}' )
if [ $WM_CLASS = $APP_CLASS ]; then
wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650
fi
sleep 0.25
done
add a comment |
Here's a little script to really permanently set a window size, regardless of gnome-terminal profile that you are currently using. This works on all windows belonging to gnome-terminal
To make it work, you need two things: 1) make sure you have wmctrl installed and 2) run this script as one of the Startup Applications.
Notice that line with wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650 sets size and position according to gravity,x-position,y-position,width,height format
#!/bin/bash
# Author: Serg Kolo
# date: Sat, Sept 19,2015
# Purpose: a script to permanently set
# terminal window, size
# Written for: http://askubuntu.com/q/64652/295286
APP_CLASS="gnome-terminal.Gnome-terminal"
while [ 1 ]; do
WIN_ID=$(printf %x $(xdotool getactivewindow))
WM_CLASS=$(wmctrl -lx | awk -v search=$WIN_ID '{ if($1~search) print $3 }')
WMCTRL_ID=$( wmctrl -lx | awk -v search2=$WIN_ID '$0~search2 {print $1}' )
if [ $WM_CLASS = $APP_CLASS ]; then
wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650
fi
sleep 0.25
done
Here's a little script to really permanently set a window size, regardless of gnome-terminal profile that you are currently using. This works on all windows belonging to gnome-terminal
To make it work, you need two things: 1) make sure you have wmctrl installed and 2) run this script as one of the Startup Applications.
Notice that line with wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650 sets size and position according to gravity,x-position,y-position,width,height format
#!/bin/bash
# Author: Serg Kolo
# date: Sat, Sept 19,2015
# Purpose: a script to permanently set
# terminal window, size
# Written for: http://askubuntu.com/q/64652/295286
APP_CLASS="gnome-terminal.Gnome-terminal"
while [ 1 ]; do
WIN_ID=$(printf %x $(xdotool getactivewindow))
WM_CLASS=$(wmctrl -lx | awk -v search=$WIN_ID '{ if($1~search) print $3 }')
WMCTRL_ID=$( wmctrl -lx | awk -v search2=$WIN_ID '$0~search2 {print $1}' )
if [ $WM_CLASS = $APP_CLASS ]; then
wmctrl -i -r $WMCTRL_ID -e 0,0,0,650,650
fi
sleep 0.25
done
answered Sep 19 '15 at 18:46
Sergiy KolodyazhnyySergiy Kolodyazhnyy
74.8k9155325
74.8k9155325
add a comment |
add a comment |
Linux Mint 19.1 (Xfce)
- Open Linux Mint Menu button
- Select
Settings
- Select
Xfce Terminal
- Navigate the new
Terminal preferenceswindow to theAppearanceTab. - Set the Default Geometry, to your preference.
- Close and Enjoy.
However, the user config file is located in:~/.config/xfce4/terminal/terminalrc
and the config item you need (for Xfce) is:
MiscDefaultGeometry.
But you can edit faster from the command line with:
sed -E 's/MiscDefaultGeometry=.+$/MiscDefaultGeometry=140x40/' -i ~/.config/xfce4/terminal/terminalrc
Where we have set the size to 140x40 as an example.
For those down-voting, please provide an explanation out of common courtesy.
– not2qubit
Feb 11 at 11:57
add a comment |
Linux Mint 19.1 (Xfce)
- Open Linux Mint Menu button
- Select
Settings
- Select
Xfce Terminal
- Navigate the new
Terminal preferenceswindow to theAppearanceTab. - Set the Default Geometry, to your preference.
- Close and Enjoy.
However, the user config file is located in:~/.config/xfce4/terminal/terminalrc
and the config item you need (for Xfce) is:
MiscDefaultGeometry.
But you can edit faster from the command line with:
sed -E 's/MiscDefaultGeometry=.+$/MiscDefaultGeometry=140x40/' -i ~/.config/xfce4/terminal/terminalrc
Where we have set the size to 140x40 as an example.
For those down-voting, please provide an explanation out of common courtesy.
– not2qubit
Feb 11 at 11:57
add a comment |
Linux Mint 19.1 (Xfce)
- Open Linux Mint Menu button
- Select
Settings
- Select
Xfce Terminal
- Navigate the new
Terminal preferenceswindow to theAppearanceTab. - Set the Default Geometry, to your preference.
- Close and Enjoy.
However, the user config file is located in:~/.config/xfce4/terminal/terminalrc
and the config item you need (for Xfce) is:
MiscDefaultGeometry.
But you can edit faster from the command line with:
sed -E 's/MiscDefaultGeometry=.+$/MiscDefaultGeometry=140x40/' -i ~/.config/xfce4/terminal/terminalrc
Where we have set the size to 140x40 as an example.
Linux Mint 19.1 (Xfce)
- Open Linux Mint Menu button
- Select
Settings
- Select
Xfce Terminal
- Navigate the new
Terminal preferenceswindow to theAppearanceTab. - Set the Default Geometry, to your preference.
- Close and Enjoy.
However, the user config file is located in:~/.config/xfce4/terminal/terminalrc
and the config item you need (for Xfce) is:
MiscDefaultGeometry.
But you can edit faster from the command line with:
sed -E 's/MiscDefaultGeometry=.+$/MiscDefaultGeometry=140x40/' -i ~/.config/xfce4/terminal/terminalrc
Where we have set the size to 140x40 as an example.
edited Feb 11 at 11:54
answered Feb 8 at 17:25
not2qubitnot2qubit
292210
292210
For those down-voting, please provide an explanation out of common courtesy.
– not2qubit
Feb 11 at 11:57
add a comment |
For those down-voting, please provide an explanation out of common courtesy.
– not2qubit
Feb 11 at 11:57
For those down-voting, please provide an explanation out of common courtesy.
– not2qubit
Feb 11 at 11:57
For those down-voting, please provide an explanation out of common courtesy.
– not2qubit
Feb 11 at 11:57
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f64652%2fset-terminal-size-permanently%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown