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.

The default window movement key (alt) conflicts with several programs that I use fairly often. I'm sure some users find this key binding useful but I really need to change it to something else so that I can be productive.

I looked in the most logical place:

System Settings > Keyboard > Shortcuts (Tab) > Windows

While there is a 'Move Window' item listed it appears to be an additional way to move windows. Where can I change the key that is bound to the following combination:

depress (and hold) alt key + left mouse button click

I'm using Unity 2D with metacity. The Compiz plugin solution referred to in similar questions will not help me.

Here is a screenshot of the old 11.04 Window Preferences illustrating what I'm trying to do:

Old Window Preferences when it was easy to change the movement key

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

I was calling it the 'window movement key' (based on the Window Preferences settings from Ubuntu 11.04). It seems in practice it's actually referred to as the 'mouse button modifier'.

Install the 'Configuration Editor' (gconf-editor) from the Ubuntu Software Center. You can use it to change the key.. or manually do it from the terminal with:

gconftool --set --type string /apps/metacity/general/mouse_button_modifier "<Super>"

The default value is <Alt>. I've changed it above to be the super (Windows) key. Other valid values are <Shift>, and <Control>.

Here's the description of the key from gnome.org:

"Clicking a window while holding down this modifier key will move the window (left click), resize the window (middle click), or show the window menu (right click). The middle and right click operations may be swapped using the "resize_with_right_button" key. Modifier is expressed as "<Alt>" or "<Super>" for example."

share|improve this answer
add comment

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.