Everytime I open a new terminal I want it to be maximized. I don't want to use a 3rd party plugin. How can I achieve this ? (initial terminal size in gnome-terminal doesn't work properly since it isn't really maximized)
-
You can achieve it easily.. See `man gnome-terminal` and you will have maximized option.. Then edit the..`.desktop` file and edit the `exec` command.. – PRATAP Feb 29 '20 at 14:54
-
I am sure it is easy... could you also explain the steps since the manual doesn't explain much other than setting up a custom profile which I can also edit using the Edit->Preferences tab? – user395980 Feb 29 '20 at 15:09
-
What's ur Ubuntu version? And Full screen or maximized?? – PRATAP Feb 29 '20 at 15:10
-
18 and you're right, I meant maximized :) – user395980 Feb 29 '20 at 15:22
2 Answers
- Open gnome-terminal
- Make the window maximized
- run
tput colsnote down the value - run
tput linesnote down the value - Create a new profile with any preferred name of your choice
- Change the terminal size values under "Text" Tab.
- Open the desktop file from
/usr/share/applications/org.gnome.Terminal.desktopPlease note that this step 7 could be little tricky if you want to make the changes locally with out editing system files. - Edit the
Execline to match with the profile name for example:Exec=gnome-terminal --window-with-profile=PRATAP - Save the file and close.
Tested in Ubuntu 20.04
- 21,989
- 8
- 59
- 121
-
https://askubuntu.com/q/1204959/739431 read the comments in this post for clarity on point number 7 above.. – PRATAP Feb 29 '20 at 15:37
-
Maximize when launched through Applications
Copy the system desktop file
/usr/share/applications/org.gnome.Terminal.desktopto your local.local/share/applicationsfolder.Edit the
Exec=gnome-terminalline to readExec=gnome-terminal --maximize
This will maximize each new instance of the terminal when you launch it through the menu.
Maximize when launched by keyboard shortcut
When using a shortcut to launch the terminal ("Settings", "Keyboard shortcuts"), edit the command by adding the --maximize option.
Notes
1) If you want the change to affect all users, directly edit the global /usr/share/applications/org.gnome.Terminal.desktop file as administrator.
2) Instead of --maximize, you can also use the option --full-screen to have an even more immersive terminal experience.
- 82,909
- 6
- 116
- 186