88

Is it possible to move windows from the keyboard itself without touching the mouse?

I know I can do a Alt + Left Click and drag the window, however I am hoping there is something I can use to move it from the keyboard without the mouse.

4 Answers 4

128

You can move a window by pressing

  • Alt+F7, then moving it around with the arrow keys, and finish by hitting Return.

  • The same goes for resizing, using Alt+F8

You can also press Esc to cancel

Also, while I'm at it:

  • Alt+F9 minimises the window

  • Alt+F10 maximises it

You can also bring up the application's window menu with Alt+space:

alt text


If you want to change those shortcuts, you can go to System → Preferences → Keyboard Shortcuts and find them under Window Management:

alt text

2
  • in ubuntu 18 Alt+F10 toggle the minimization and maximization.
    – alhelal
    Jul 25, 2018 at 10:02
  • Very handy when adding a display monitor and the window is cut off at the top (making drag and drop hard). Also found I needed to add Fn key, sometimes from my laptop (e.g.: Alt + Fn + F7)
    – yuvilio
    Jun 1, 2019 at 18:50
29

Here is a list of shortcuts:

  • Ctrl+Alt+Num 1 = moves the window to the bottom left corner
  • Ctrl+Alt+Num 2 = moves the window to the bottom half of the screen
  • Ctrl+Alt+Num 3 = moves the window to the bottom right corner
  • Ctrl+Alt+Num 4 = moves the window to the left half of the screen
  • Ctrl+Alt+Num 5 = maximizes the window
  • Ctrl+Alt+Num 6 = moves the window to the right half of the screen
  • Ctrl+Alt+Num 7 = moves the window to the right left corner
  • Ctrl+Alt+Num 8 = moves the window to the top half of the screen
  • Ctrl+Alt+Num 9 = moves the window to the right right coner
9
  • 2
    I'd like to activate those shortcuts in Debian Jessie. Any idea?
    – Rodrigo
    Nov 20, 2016 at 6:11
  • 7
    Well, this used to work till Ubuntu 17.04, using ubuntu 17.10 ATM and this doesn't work. I wish it would work though. Nov 2, 2017 at 14:33
  • 1
    Found out where they are? I am looking for it in 18.04
    – bobK
    Jun 13, 2018 at 11:00
  • 2
    this used to work but not in 18.04 :(
    – tibi
    Aug 1, 2018 at 7:28
  • 1
    @Mat : Go into the dconf editor and go to the path /org/gnome/desktop/wm/keybindings/. You will find find all the settings that start with "move-to". Mar 9, 2023 at 12:59
4

Instead of moving windows around by keyboard as if you're moving a mouse, you might just as well use a tiling window manager like awesome or xmonad, where everything is done by keyboard, anyway. In these window managers, windows only exchange places with other windows, and together they cover the whole screen.

-1

There is now an application that performs these functions called Window Shuffler Control. I installed it through the Ubuntu Budgie extras.

https://ubuntubudgie.org/2020/09/development-update-on-window-shuffler/

0

You must log in to answer this question.