Every time I open a terminal or an application like Inkscape I have to click the maximize button because by default they open in a small size. Is there a way I can configure my system so that whenever a new program opens, it uses the whole screen?
Here is an example of how small the window of Inkscape is when it opens:
Install maximus from the Software Center or from the Terminal:
sudo apt-get install maximus
Then run this command from the Terminal:
All the new windows will be maximized with that.
Finally, just like in the screen shot at the 5th point in Isaiah’s answer, add an entry in the Startup Applications. The name can be whatever you want, and the command will be simply
sudo apt-get install devilspie
Devil’s Pie is:
A window-matching utility, inspired by Sawfish’s “Matched Windows” option and the lack of the functionality in Metacity. Metacity lacking window matching is not a bad thing — Metacity is a lean window manager, and window matching does not have to be a window manager task.
Devil’s Pie can be configured to detect windows as they are created, and match the window to a set of rules. If the window matches the rules, it can perform a series of actions on that window. For example, I can make all windows created by X-Chat appear on all workspaces, and the main Gkrellm1 window does not appear in the pager or task list.
Create the directory
~/.devilspieif it doesn’t already exist:
mkdir -p ~/.devilspie
Now we’ll create the script that will maximize all windows:
Paste the following code into
(begin (maximize)(focus) )
Run the following command from a terminal:
All your windows should now be maximized. Now add
devilspieto your Startup Applications so you won’t have to run it manually every time you login:
System ➜ Preferences ➜ Startup Applications
Click Add and enter
Devil's Piefor the Name and
/usr/bin/devilspiefor the Command.
Click Add and close Startup Applications.
For regular Inkscape users which get annoyed by that problem there is a solution.
- Start up Inkscape.
- Maximize it.
- Go to File ➜ Inkscape Preferences ➜ Windows.
Select Remember and use last window’s geometry.
Always close it in maximized mode.
Now every time you fire up Inkscape it will load up with its saved geometry.
Open Alt + F2 and type
ccsmand hit Enter,
At “Windows” paste:
If you are using Compiz, go to “Window Management” (under categories or scroll down in the main window) and do the next:
DO NOT ENABLE WINDOWS RULES YET!
Open “Window Rules”.
In the “Matches” tab, find
“Maximized” and write
Then enable Window Rules. (Check box on left or in main window)
Now, all your windows (and I mean: ALL) will ALWAYS open Maximized.
WARNING! This will also include dialogs, normal windows, and every window will act as you requested. This was your wish, right? always be sure that you really wish what you wish. 🙂
You can also do several things, which includes (but not limited to):
- Enabling a single program to open
maximized, by clicking the “plus”
icon in the right side and pressing
the “Grab” button in order to choose
the window of the program. which
should be running in order to do
this, you can also write the title,
role, type, name, etc.
- Exclude a single program to not
observe this feature by doing the
last steps and making sure you enable
the “Invert” button in the dialog
- Use other windows rules, like:
Skip taskbar: in order to the windows won’t appear in the task bar.
Skip pager: this way the windows won’t appear when you change an application by using [Alt][Tab] or [Super][Tab]
Above: the windows will always stay above the rest of the windows keeping the focus always.
Below: Useful when you wish an application, like the terminal, to be as “embedded” into the desktop.
Fullscreen: doesn’t need explanation.
Non movable, Non resizable, Non minimizable, Non maxibizable, Non closable, Non focus: does what it says.
A screenshot is placed here for you to see this plugin’s in action:
HOW TO OVERRIDE THIS WINDOWS BEHAVIOUR:
You will be in the need to gain access to compiz, and disable the “Window Rules” plugin.
If you did something that don’t allow you to see compiz, (something like: making a window to stay “above” of the other and maximized or fullscreen), open a terminal and disable compiz by running:
The uppercase are just to emphasize important text. Can be edited and changed by anyone if needed. Thank you.
I you are using compiz you can also:
install ccsm from software center or sudo apt-get install ccsm. It’s a compiz configurator
launch it from dash or from terminal
select windows placement and in the general tab change the positioning mode to maximized
I found this works quite well.
What concerns Gnome 3, I can say that usually when you close any application, it remembers the size, and next time, when it opens again.
So all you need to do is to maximize it before exit.