Skip to content

Recreating macOS Magnet window management in Linux

Updated: at 10:00 AM
2 min read

If you’ve ever used macOS with the Magnet app, you know how incredibly useful its window management capabilities are. As developers, efficient window management is crucial for our productivity. In this guide, I’ll show you how to achieve similar functionality in Linux using gTile, a powerful GNOME extension.

Prerequisites

Installation

  1. Open the gTile extension page in your browser
  2. Toggle the switch to install the extension
  3. Click “Install” when prompted

Alternatively, if you prefer the terminal:

gnome-extensions install gtile@vibou
gnome-extensions enable gtile@vibou

Configuration

After installation, you’ll need to configure gTile with optimal presets and shortcuts. Here are my recommended settings that closely mirror Magnet’s functionality:

Presets

Open gTile settings and add the following presets:

  1. 4x4 1:1 4:4 - Full screen
  2. 4x4 1:1 2:4 - Left half
  3. 4x4 3:1 4:4 - Right half
  4. 4x4 1:1 4:2 - Top half
  5. 4x4 1:4 4:3 - Bottom half

Keyboard Shortcuts

Set up these intuitive shortcuts for quick access:

Usage Tips

The 4x4 grid system might seem complex at first, but it’s incredibly flexible. The preset format follows this pattern:

4x4 startColumn:startRow endColumn:endRow

For example, 4x4 1:1 2:4 means:

Pro Tips

  1. Quick Activation: Double-click the gTile icon in your system tray to instantly show the grid overlay
  2. Grid Preview: Hold your configured shortcut to see a preview of where your window will snap
  3. Multiple Monitors: gTile works seamlessly across multiple displays, just like Magnet

Customization

You can further customize gTile by:

Troubleshooting

If shortcuts stop working after a system update:

  1. Disable and re-enable the extension
  2. Log out and back in
  3. Verify shortcuts in GNOME Settings > Keyboard > Shortcuts

Conclusion

With gTile properly configured, you’ll have a powerful window management system that rivals (and in some ways exceeds) Magnet’s functionality. The best part? It’s completely free and open source.

Remember to log out and back in after making significant changes to ensure all settings are properly applied.