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 love how you can resize windows by pressing alt+middle-mouse-button and drag.

Though now I got a mouse which doesn't support pressing the middle mouse button..

How do I do to change the combination from alt+middle-mouse-button to alt+right-mouse-button?

(On Ubuntu 11.04 with unity)

share|improve this question

4 Answers 4

up vote 6 down vote accepted
  1. You need to get and install ccsm (Compiz Config Settings Manager).

  2. Go to Window Management --> Resize windows. enter image description here

  3. Done.

Note: Changing Button2 to Button3 or 1 , will give you a conflict message , change it to something else. However Alt+F8 Will give you the same result. enter image description here

share|improve this answer
    
This is just what I was looking for - thanks a lot! –  Tal Galili Nov 17 '11 at 20:09

Follow these steps:

  • To open dconf-editor, Hit Alt+F2, type dconf-editor and hit Enter.

  • In dconf-editor goto: orggnomedesktopwmpreferences and enable ☑ resize-with-right-button.

    enter image description here

share|improve this answer
    
It works again the way I'm used to :). Thank you very much! –  Jonathan Gruber Apr 28 '13 at 7:50

You can do this using compizconfig-settings-manager.

If you dont already have this installed, use Software Center and search for this package.

In dash type ccsm and then in the Window Management section click on "Resize Window".

At the bottom of this window is "Initiate Window Resize" - you'll notice that Button2 is the default. You can change this to whichever button you want.

share|improve this answer

The following script extract will do just that (and works on both new Unity and old Gnome):

#!/bin/bash
gconftool-2 -s -t bool /apps/metacity/general/resize_with_right_button true
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true

I have a script that I run whenever I install a fresh Ubuntu and the above is part of it; makes it nice and easy to restore my default settings :)

share|improve this answer
    
This is nice. Could you share the script with the community? Thanks! –  qed Sep 24 at 14:48
    
@qed the script is literally a few lines of things that look similar to the above, and almost all of them are my personal preferences; I'm not sure how useful anyone else would find it! –  Seb Sep 25 at 15:56
    
If no privacy is involved, I would be glad to see it, and I am sure I can learn something from it! :-) –  qed Sep 25 at 16:09
    
Especially because I am also trying to make up such a script myself. –  qed Sep 25 at 16:10

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.