18

I fresh installed ubuntu 20.04 today and found the alt+mouse drag for move and ctrl+mouse drag for resize doesn't work. How can I turn the function on? (I don't know why ubuntu people didn't set it as default).
ADD : I found under setting-keyboard short - windows, the default window move is Alt+F7 and window resize is Alt+F8. I want to change it to Alt+mouse and Ctrl+mouse which is quicker. How can I change it? (I tried but didn't work)

6
  • 1
    do you know if it's an option included in the gnome-tweaks app? linuxconfig.org/…
    – Jad
    May 7, 2021 at 11:40
  • @jad hi, I've been using it in Xfce4 and unity window manager. Do you mean I can use it in unity by installing gnome-tweaks app?
    – Chan Kim
    May 7, 2021 at 14:45
  • Clarify which desktop environment you use. You refer to Unity, but then you refer to a default Ubuntu 20.04 install. Then you are probably not using Unity, but Gnome Shell.
    – vanadium
    May 7, 2021 at 15:49
  • @vanadium isn't the purple window gui the Unity? I fresh installed 20.04 and it began with that purple GUI. and I don't know what 'Focal Fossa linux' is in the link jed showed me. The GUI looks almost the same with on in the link though.
    – Chan Kim
    May 10, 2021 at 0:29
  • 1
    echo $XDG_CURRENT_DESKTOP in terminal will show what desktop environment you use
    – vanadium
    May 10, 2021 at 6:47

2 Answers 2

18

Someone thought that changing the key to Super (akaWindows or ) was a good idea to resolve some other conflicts for the design crowd. Frustrating. To restore the Gnome 2 defaults of Alt:

gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Alt>'
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true

If you want to use Ctrl then you can substitute <Ctrl> above, but I think you might be mistaken, chances of conflicting key combinations involving that are even higher.

The default to resize from anywhere was changed to Super + middle click drag. Of course the above restores that too.

4
  • 1
    Sometimes the solution pops up only a few months later. Thanks! Spot on! It is not possible to have Alt for move then Ctrl for resize - for both, the same windows action key is in effect.
    – vanadium
    Aug 29, 2022 at 10:39
  • Hi now I usually work with 'terminator' window. It's very convenient so I don't need to move or resize windows as ofter as before. But thans for the answer.
    – Chan Kim
    Aug 29, 2022 at 11:54
  • For those unaware (such as myself), the "Super key" is the Windows or ⌘ key. See What is the Super key? Jul 13, 2023 at 0:43
  • can also be set in dconf-editor for a GUI experience Aug 23, 2023 at 20:05
0

In KDE, in System Settings, it's under Window Management, Window Behavior, Window Actions, Inner Window, Modifier key. It's selected to Meta, and change that to Alt.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .