9

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)

0

5 Answers 5

15

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

2
  • It works again the way I'm used to :). Thank you very much! Apr 28, 2013 at 7:50
  • much better than having to install yet another settings program.
    – JasonN
    Apr 20, 2017 at 21:30
9
  1. You need to get and install ccsm (Compiz Config Settings Manager).

    sudo apt-get install compizconfig-settings-manager
    
  2. Go to Window Management --> Resize window .

    CompizConfig Settings Manager

Note: Changing Button2 to Button3 or 1 may give you a conflict message. If so, choose "Disable Window Menu". However, Alt+F8 Will give you the same result. key binding conflict dialog

1
  • This is just what I was looking for - thanks a lot!
    – Tal Galili
    Nov 17, 2011 at 20:09
2

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.

1

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 :)

4
  • This is nice. Could you share the script with the community? Thanks!
    – qed
    Sep 24, 2014 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, 2014 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, 2014 at 16:09
  • Especially because I am also trying to make up such a script myself.
    – qed
    Sep 25, 2014 at 16:10
0

In GNOME/Ubuntu 18, if you install GNOME Tweaks, there's a setting for that: "Resize with secondary click". Checking it will enable Super+RMB to resize windows, not Alt though, but hopefully my suggestion will be taken into account.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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