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.

Solution:

  1. If you're on standard Unity which uses Compiz for 3D compositing, use compizconfig-settings-manager. See WeAreGeek's answer below.

  2. If you're on Unity 2D, as I am, then wmctrl is the only way, per user55822's answer. apt-get wmctrl gconf-editor, open gconf-editor, navigate to apps \ metacity \ keybinding_commands, bind user55822's command string to command_1, then navigate to apps \ metacity \ global_keybindings, and set run_command_1 to the key combination you want to use. Details here.


Some dialog windows are too small and I have to painstakingly drag the corners to make them big enough to be useful (looking at you Chrome/ium bookmark dialog). Is there any way to maximize these with a shortcut key, mouse is too slow.

I found a related discussion but the solution is already implemented in my Ubuntu 12.04 installation and doesn't have any effect on dialog windows.

Edit: Clarification on the specific window I'm talking about: In Chrome/ium, hit CTRL-d. It will bring up an Add Bookmark dialog with a "Folder:" dropdown menu. Scroll that menu down, all the way to the last selection "Choose Another Folder". That will close this menu and open a new one, "Edit Bookmark", which is detached from the browser. That's the main one I want to maximize but can't.

share|improve this question
    
I can't actually work out which Chromium window you are having a problem with. As far as I can see, the bookmark manager is implemented in a tab (chrome://bookmarks) not as a separate dialog? –  8128 Apr 28 '12 at 6:49
    
Sorry, it's a little tricky. In Chrome/ium, hit CTRL-d. It will bring up an Add Bookmark dialog with a "Folder:" dropdown menu. Scroll that menu down, all the way to the last selection "Choose Another Folder". That will close this menu and open a new one, "Edit Bookmark", which is detached from the browser. That's the one I want to maximize but can't. There are similar windows, especially various settings ones, that can't be maximized with standard shortcut keys either, most of them I can live without being able to maximize. "Edit Bookmarks" is a pain point though. –  Kurtosis Apr 29 '12 at 21:21

4 Answers 4

up vote 1 down vote accepted

Not sure about your windows, seems like I just dont have any like it, but you could try wmctrl (need to be installed) and bind something like

wmctrl -r :ACTIVE: -e 0,500,400,0,10

man wmctrl for options.

share|improve this answer
    
Excellent, thanks. Will wait a little longer to see if my clarification of the question turns up a built in way to do this, and will use that if not. –  Kurtosis Apr 29 '12 at 21:25

I have resolved this by installing compizconfig-settings-manager and enabling the "Window Rules" plugin. You can make a rule "type=Dialog" for "Maximize". Now all Dialog windows are opened maximized. You could also make a "Size Rule" to have dialoges opened at a fixed size.

I found a bugreport for this: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/774254

share|improve this answer

Try Ctrl+Alt+5

(I don't know if this will work on the particular windows/dialogs you're talking about.)

share|improve this answer
    
Thanks, doesn't work unfortunately. Ideally I'm looking for a key shortcut to maximize any window that doesn't have maximize built in (either in the File menu or the Title bar button), but the most frequent pain point here is browser (Chrome/ium) bookmark dialog windows. –  Kurtosis Apr 27 '12 at 17:23

Press ALT and pull the window with your middle mouse click while holding both.

share|improve this answer
    
Thanks, unfortunately this is on a trackpad laptop, no middle mouse button. I see a way to enable middle mouse click but it's a klugey hack. Is there really no way to enable Alt+Space -> x, the maximize shortcut that works for normal windows? –  Kurtosis Apr 27 '12 at 5:48

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.