Skip to content

Instantly share code, notes, and snippets.

@emamut
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save emamut/b3b1f72d21af999e78fa to your computer and use it in GitHub Desktop.

Select an option

Save emamut/b3b1f72d21af999e78fa to your computer and use it in GitHub Desktop.
How to set the terminal to open maximized
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.
Rename original gnome-terminal executable to gnome-terminal-original:
cd /usr/bin
mv gnome-terminal gnome-terminal-original
Create a new file in /usr/bin named gnome-terminal with the following content:
#!/bin/bash
/usr/bin/gnome-terminal-original --maximize $@
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment