Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to tell compiz, metacity, the gnome-terminal or whoever is in charge to open the terminal window maximized by default.

How can I do that?

share|improve this question

9 Answers 9

up vote 14 down vote accepted

If you want gnome-terminal to open fullscreen when you open it with Gnome Do or the Applications menu, put the following into a file named gnome-terminal.desktop and put that in ~/.local/share/applications.

[Desktop Entry]
Name=Terminal
Comment=Use the command line
TryExec=gnome-terminal
Exec=gnome-terminal --window --maximize
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=2.32.0
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
OnlyShowIn=GNOME;
X-Ubuntu-Gettext-Domain=gnome-terminal

Then log out and log back to apply the changes.

share|improve this answer
2  
It doesn't work in Ubuntu 12.04 –  Krige May 18 '12 at 10:40
    
Sweet! Finaly working as I want from the beginning –  sobi3ch Jan 15 at 1:20
    
Actually I found it that [Terminal] disappear from my unity dash. What I realize instead copy above code (outdated on my U13.10) it's better to copy original file $ cp /usr/share/applications/gnome-terminal.desktop ~/.local/share/applications/ and then edit it changing Exec=gnome-terminal to Exec=gnome-terminal --window --maximize. Logout then login again. –  sobi3ch Jan 15 at 1:57

Launch gnome-terminal as such:

gnome-terminal --window --maximize
share|improve this answer
    
"unknown option --maximized" –  Little Jawa Aug 5 '10 at 15:04
    
My mistake. I accidentally typed "--maximized" when it should be "--maximize". Fixed. –  Tommy Brunn Aug 5 '10 at 15:17
    
much better :-) –  Little Jawa Aug 5 '10 at 15:19
    
It works with the shortcut in the menu bar but it doesn't if I lunch it via gnome-do :( I'm accepting this answer anyway :) –  tutuca Aug 5 '10 at 17:27
    
I'm pretty sure Gnome-do depends on what's set in the gnome-terminal.desktop file. –  Firefeather Oct 29 '10 at 20:13
gnome-terminal --full-screen

You could create a shortcut on your desktop or panel to this command.

share|improve this answer
4  
There's a difference between full screen and maximized though. –  Tommy Brunn Aug 5 '10 at 15:11
    
There is. Nice to have the choice! :) –  popey Aug 5 '10 at 15:13

Ubuntu 12.04

Run ccsm (CompizConfig Settings Manager). Under Window Management enable Window Rules and open it, and in the Maximized field put class=Gnome-terminal. You may need to log out and log back in before the changes come into effect.

You can do more. I use (class=Gnome-terminal) | (class=Evince).

share|improve this answer
    
I needed to reboot after adding this rule for it to take effect. –  dave4420 Dec 8 '12 at 22:54
    
doesn't work for me :-(. tried rebooting, logging in and out, grabbing the window class automatically (by clicking on the Terminal). I typically start my terminal from the sidebar or with Ctrl+Alt+T. In both cases it still starts with small size. –  Sergiy Byelozyorov Nov 22 '13 at 9:51

In Ubuntu 11.10 and up:

  • Search > Keyboard > Shortcuts > Custom Shortcuts > Add (+ button) >
    • Name: Launch Terminal Maximized
    • Command: gnome-terminal --window --maximize
  • Click Apply
  • Click on 'Disabled'
  • Shift+Ctrl+Alt+T
share|improve this answer
1  
Do not use "Ubuntu 12" there are always 2 versions per year. –  RolandiXor Sep 25 '12 at 19:28
    
where is that Search menu item? (12.04) –  Walter Tross Dec 29 '12 at 15:19
    
Launch the 'System Settings' applet from Dash, and there's a search-box in the top-right corner of that applet. That's what I was referring to. BTW, I have been using the method described by @Craig above, and also the --maximmize option for scripting. –  Gurjeet Singh Dec 31 '12 at 17:50

If you just want the terminal to open full size on screen use the GUI method of changing the default size through current profile preferences dialog appropriately to do so simply follow these steps

*open a terminal and choose edit

*in the general tab check Use custom default terminal size

*you need to adjust these values so that they fit your screen 
by simple trial and error

the column setting is 128 for me you should set the values that best suit you.

share|improve this answer
1  
Making the window the same size as the desktop doesn't make it maximized –  Alvin Row Oct 29 '10 at 20:20
1  
@DoR I know but i still consider it as an option and a rather good and easy one at that because it will work even if he uses gnome-do and this is for a newbie who may have the same question he might find this thread and he deserves to have all options shown as he cannot ask a duplicate question and suppose he dosen't want it fully maximized or wants to use gnome-do or any new launcher this option survives... –  Siamore Oct 31 '10 at 9:38
  • Open a Terminal
  • Select Profile Preferences from the Edit Menu.
  • Tick Use custom default terminal size and enter a default size that is too large for the screen e.g. 240 columns and 100 rows.

Click close then open a new Terminal by clicking the icon OR pressing Ctrl + Alt + T, the new terminal window should be maximised.

This answer is based upon advice I was given here: How to make terminal start maximized?

share|improve this answer
    
I confirm this works in 12.04, and is probably the easiest solution (at least for people like me who always work with maximized windows) - thanks! My advice is to set the default columns and rows to just slightly more than what fills the screen, in order not to have problems in case you un-maximize the window. –  Walter Tross Dec 29 '12 at 14:57
    
If you temporarily need a small window, you can always un-maximize the window (double click on top) and click on Terminal > 80x24 –  Walter Tross Dec 31 '12 at 8:59

The selected answer didn't work for me on fully updated Ubuntu 12.04 LTS, so I decided it was time for a more drastic approach.

  1. Rename original gnome-terminal executable to gnome-terminal-original:

    cd /usr/bin
    mv gnome-terminal gnome-terminal-original
    
  2. Create a new file in /usr/bin named gnome-terminal with the following content:

    #!/bin/bash
    /usr/bin/gnome-terminal-original --maximize $@
    
  3. Make it executable:

    chmod +x gnome-terminal
    

Now no matter how I open the terminal, it always opens maximized. The only downside I see for this approach is that you have to repeat these steps every time you might update gnome-terminal with a new version via update manager or apt-get upgrade.

Note: the $@ parameter means that all arguments that might get passed to gnome-terminal will still get passed to gnome-terminal-original, along with --maximize argument.

share|improve this answer

You can probably modify your shortcuts to use the maximize one so that it always starts that way.

share|improve this answer
2  
Can you provide any information about how to do this? –  Eliah Kagan Jun 25 '12 at 0:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.