You can move a window without touching your mouse by using keyboard shortcuts built into Windows, macOS, and Linux
Most people drag windows across the screen with a mouse, but your keyboard can do the same thing faster once you know the commands. The method depends on which operating system you use, and some systems give you more control than others. On Windows, you'll use the Windows key plus arrow keys. On macOS, you'll need a third-party tool or use Mission Control. Linux offers the most flexibility because different desktop environments have different built-in shortcuts.
Moving windows by keyboard is useful when your mouse isn't working, when you're working on a laptop trackpad and want to save time, or when you're setting up multiple windows side by side. It's also faster than dragging once you memorize the shortcuts.
Key Takeaways
- Windows 10 and 11 let you snap windows to screen edges and corners using Windows key plus arrow keys, which moves and resizes in one action.
- macOS doesn't have a built-in keyboard-only window mover, so you'll need to use Mission Control or install a third-party app like Rectangle or Magnet.
- Linux window movement depends on your desktop environment — GNOME, KDE, and others have different default shortcuts, usually involving Alt plus arrow keys or Super key combinations.
- Some keyboard shortcuts move windows to specific positions (like left half of screen), while others let you drag a window freely using keyboard controls.
Moving windows in Windows 10 and 11 with snap layouts
Windows has a feature called Snap Layouts that moves and resizes windows at the same time. Press the Windows key + Up arrow to snap the current window to the top half of your screen. Press Windows key + Down arrow to snap it to the bottom half. Press Windows key + Left arrow to snap it to the left half, and Windows key + Right arrow to snap it to the right half.
If you press Windows key + Up arrow twice, the window will maximize to fill your entire screen. Pressing it a third time returns it to its previous size. This is the fastest way to arrange two or four windows on your screen without using your mouse at all.
For more precise control, you can also press Windows key + Z to open the Snap Layouts menu, which shows you thumbnail previews of different window arrangements. You can then use arrow keys to select a layout and press Enter to apply it. This works best when you have multiple windows open and want to see your options before committing to a layout.
Moving windows freely in Windows using keyboard-only methods
If you need to move a window to a position that isn't one of the snap locations, Windows doesn't have a built-in keyboard-only way to drag windows around freely. The snap feature only moves windows to preset positions. However, you can use Alt + Space to open the window menu, then press M for Move. After that, use your arrow keys to move the window pixel by pixel, and press Enter when you're done.
This method is slower than snapping but works when you need precise placement. The arrow keys move the window in the direction you press, and holding an arrow key makes the window move continuously. Once you press Enter, the window stays in its new position.
Moving windows on macOS without third-party tools
macOS doesn't have a keyboard shortcut built in to move windows around your screen. The closest option is Mission Control, which you access by pressing F3 or Control + Up arrow (depending on your settings). Mission Control shows all your open windows, but it doesn't let you move them with the keyboard — you still have to click and drag.
For actual keyboard-based window movement on macOS, you'll need to install a third-party tool. Rectangle and Magnet are the most popular options. Rectangle is free and open source. It lets you snap windows to screen edges and corners using keyboard shortcuts similar to Windows, like Control + Option + Left arrow to snap to the left half. Magnet costs about $5 and offers a similar feature set with a slightly different interface.
Both tools run in the background and don't require any setup beyond installation. Once installed, you can immediately start using keyboard shortcuts to move and resize windows.
Moving windows in Linux desktop environments
Linux window movement shortcuts vary depending on which desktop environment you're using. GNOME, the most common desktop on Ubuntu and Fedora, uses Super + Up arrow to maximize a window and Super + Left arrow or Super + Right arrow to snap to screen halves. The Super key is usually the Windows key on your keyboard.
KDE Plasma, used on Kubuntu and other distributions, uses Meta + Ctrl + arrow keys to move windows, where Meta is the Super key. You can also press Alt + F7 to enter move mode, then use arrow keys to move the window and press Enter to confirm.
If you're using a different desktop environment like Cinnamon, Xfce, or i3, check your system settings under Keyboard Shortcuts or Window Management. Most environments let you customize window movement shortcuts, so you can set them to whatever you prefer. Some window managers like i3 are tiling managers that automatically arrange windows, so keyboard movement works differently — windows snap to grid positions rather than dragging freely.
When keyboard window movement is faster than your mouse
Keyboard shortcuts save time when you're arranging multiple windows in a standard layout, like putting two documents side by side or maximizing one window. If you do this repeatedly throughout your day, learning the shortcuts means you never have to reach for your mouse.
Keyboard movement is also more reliable when your mouse or trackpad is acting up. If your cursor is jumping around or your trackpad isn't responding consistently, keyboard shortcuts will still work. On laptops, keyboard shortcuts can be faster than trackpad dragging because trackpads require more precision and multiple swipes to move a window across the screen.
However, if you need to move a window to an unusual position or move it just a few pixels, your mouse will usually be faster. Keyboard shortcuts work best for standard positions like halves, quarters, and full screen.
Customizing window movement shortcuts on your system
On Windows, you can't customize the built-in snap shortcuts, but third-party tools like AutoHotkey let you create your own keyboard commands for window movement. AutoHotkey is free and runs scripts that can move windows to any position you define.
On macOS, Rectangle and Magnet both let you customize their keyboard shortcuts in their settings. You can change the default shortcuts to match what you're used to on Windows or Linux, or create entirely new ones.
On Linux, most desktop environments have a Keyboard Shortcuts settings panel where you can view and change window movement commands. Open your system settings, look for Keyboard or Shortcuts, and find the Window Management section. You can reassign shortcuts to different key combinations if the defaults don't work for you.
Frequently Asked Questions
Can I move a window to a specific position like top-left corner with keyboard?
On Windows, you can snap to corners by pressing Windows key + Up arrow, then Windows key + Left or Right arrow. On macOS with Rectangle, you can set custom shortcuts for corner positions in the app settings. On Linux, it depends on your desktop environment, but most let you define custom shortcuts for any window position.
What if my keyboard shortcut isn't working?
Check that you're pressing the correct modifier key — Windows key on Windows, Control + Option on macOS with Rectangle, or Super key on Linux. If the shortcut still doesn't work, make sure no other program is using the same shortcut. On Windows, check Settings > System > Keyboard > Advanced keyboard settings. On macOS, check System Preferences > Keyboard > Shortcuts. On Linux, check your desktop environment's keyboard settings.
Can I move a window to a second monitor with keyboard?
Windows doesn't have a built-in shortcut for this, but AutoHotkey scripts can do it. On macOS, Rectangle can move windows between monitors if you set up custom shortcuts. On Linux, most desktop environments support moving windows to other monitors with keyboard shortcuts — check your keyboard settings to see if one is already assigned.
Is there a way to drag a window freely using only the keyboard?
On Windows, use Alt + Space, then M, then arrow keys. On macOS, you need a third-party tool like Rectangle. On Linux, press Alt + F7 in most desktop environments to enter move mode, then use arrow keys to position the window and press Enter to confirm.
Do I need to install anything to use keyboard window movement?
On Windows and Linux, the shortcuts are built in — no installation needed. On macOS, you'll need to install a third-party tool like Rectangle (free) or Magnet (paid) because macOS doesn't include keyboard window movement by default.