sodcalculator

10 Tech How-To

Move & Resize Windows with Keyboard Shortcuts (KDE-Style)

Guide 10-16462 · Updated · Step by step

This guide shows you how to move and resize windows using only your keyboard, replicating the powerful shortcuts found in KDE Plasma on other desktop environments like GNOME, Xfce, or Windows. You’ll learn the default key combos, how to customize them, and what to do when they don’t work.

What You’ll Need

  • A Linux desktop environment (GNOME, Xfce, Cinnamon, MATE, or KDE Plasma itself) or Windows 10/11.
  • Access to system settings to change keyboard shortcuts (usually found in Settings → Keyboard → Shortcuts).
  • Basic familiarity with modifier keys (Alt, Super/Windows, Ctrl).

Step-by-Step

  1. Identify your desktop environment. The exact steps depend on whether you use GNOME, Xfce, KDE, or Windows. This guide covers the most common ones.
  2. For KDE Plasma (the original): The default shortcut is Alt + Left Mouse Button to move a window, and Alt + Right Mouse Button to resize. You can also use Alt + F7 to move and Alt + F8 to resize (then use arrow keys and press Enter).
  3. For GNOME (Ubuntu, Fedora, etc.): By default, GNOME only has Super + Arrow Keys for tiling (snapping). To get move/resize with Alt+drag, you need to enable it. Open Settings → Keyboard → View and Customize Shortcuts → Windows. Look for “Move Window” and “Resize Window” – they are often unset. Click on them and press the desired combo (e.g., Alt + F7 for move).
  4. For Xfce (Xubuntu, Linux Mint Xfce): Go to Settings → Window Manager → Keyboard. Find “Move Window” and “Resize Window”. By default, they are often set to Alt + F7 and Alt + F8 respectively. You can change them to your liking.
  5. For Cinnamon (Linux Mint): Open System Settings → Keyboard → Shortcuts → Windows. Look for “Move window” and “Resize window”. Set them to your preferred combinations.
  6. For Windows 10/11: Windows doesn’t have a direct “move with keyboard” shortcut like KDE, but you can use Win + Arrow Keys to snap and Win + Shift + Arrow Keys to move to another monitor. To resize with keyboard, use Win + Arrow Keys after snapping, or use Alt + Space to open the window menu, then press S for Size, use arrow keys, and press Enter.
  7. Test the shortcut. Click on a window to make it active, then press your chosen move shortcut (e.g., Alt + F7). The window will become “attached” to your mouse or keyboard. Use arrow keys to move it, then press Enter to drop it.
  8. For resize: Press your resize shortcut (e.g., Alt + F8). The window will enter resize mode. Use arrow keys to adjust the size, then press Enter to confirm.
  9. Customize to your preference. If the default combos conflict with other apps, change them in the same settings panel. For example, you might prefer Super + Left Mouse for move.

Common Mistakes

  • Using the wrong modifier. Some shortcuts use Alt, others use Super (Windows key). Make sure you press the correct one.
  • Not having the window focused. The shortcut only works on the active window. Click on it first.
  • Conflicting shortcuts. Another application (like a screenshot tool) might be using the same combo. Check your global shortcuts.
  • Expecting mouse-like behavior. Keyboard move/resize is discrete (step by step), not smooth like dragging. Use small arrow key presses.

Tips

  • Use the mouse as a fallback. If you need precise positioning, the mouse is still faster. Keyboard shortcuts are best for quick adjustments.
  • Combine with tiling. Use Super + Arrow Keys to snap windows to screen edges, then fine-tune with the keyboard move shortcut.
  • Learn the window menu. On most Linux desktops, Alt + Space opens a menu with Move, Resize, Minimize, etc. This is a universal fallback.
  • Use a custom script for advanced control. Tools like wmctrl or xdotool can move/resize windows programmatically, but that’s beyond this guide.

Troubleshooting

  • Shortcut does nothing. Check if the desktop environment is using the shortcut for something else. Go to settings and see if it’s assigned. If not, try a different combo.
  • Window moves but doesn’t resize. The resize shortcut might be different. In KDE, it’s Alt + Right Mouse; in GNOME, you may need to set it manually. Ensure you’re pressing the correct button.
  • Only works on some windows. Some applications (like games or fullscreen apps) may ignore window manager shortcuts. Exit fullscreen first.
  • On Wayland, Alt+drag doesn’t work. Some Wayland compositors don’t support Alt+drag by default. You may need to install an extension (GNOME) or use a different shortcut (KDE).
  • Windows key is being intercepted. Some keyboards have a Fn lock that changes the Super key behavior. Try another modifier.

Frequently Asked Questions

Can I use these shortcuts on macOS?

macOS doesn’t have a direct equivalent, but you can use Option + drag to move, and there are third-party tools like Rectangle that add keyboard resizing.

What is the difference between Move and Resize?

Move changes the window’s position on the screen. Resize changes its width and height. They are two separate actions.

How do I cancel a move/resize once started?

Press Escape before confirming with Enter. The window will revert to its original state.

Why would I use keyboard shortcuts instead of the mouse?

It’s faster for repetitive tasks, helps with RSI, and works better when you’re already typing. It also allows precise pixel adjustments.

Can I set a shortcut to move a window to a specific monitor?

Yes, on most desktops you can assign a shortcut for “Move to Monitor Left/Right” or use Super + Shift + Arrow on Windows.

Is there a way to make the window snap to edges while moving?

Yes, most desktops have edge snapping enabled by default. If not, look for “Edge Tiling” or “Snap” in window manager settings.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →