Introduction
Have you ever wished your Linux desktop could snap windows like on Windows 10 or macOS? What if I told you there's an even better way to organize your workspace? Tiling window managers are a powerful feature that can transform how you work on Linux. Instead of manually resizing and positioning windows, they automatically arrange them in a grid-like pattern, maximizing screen space and boosting productivity.
In this tutorial, you'll learn how to install and use a tiling window manager called i3, one of the most popular options for Linux users. By the end, you'll have a fully functional tiling environment that will make your workflow more efficient and organized.
Prerequisites
Before starting this tutorial, ensure you have:
- A Linux operating system (Ubuntu, Fedora, Debian, or similar)
- Basic understanding of using a terminal
- Internet connection for downloading packages
- Root access or sudo privileges
Step-by-Step Instructions
1. Install i3 Window Manager
The first step is installing the i3 window manager. Open your terminal and run the following command:
sudo apt update
sudo apt install i3
Why this step? We need to download and install the actual tiling window manager software onto our system. The apt package manager will handle all dependencies automatically.
2. Restart Your Computer
After installation, restart your computer to ensure all changes take effect properly:
sudo reboot
Why this step? A system restart ensures that all graphical components are properly initialized with the new window manager. This prevents potential conflicts with your current desktop environment.
3. Log Into i3
After restarting, when you reach the login screen, look for a button or menu that says "i3" or "Session". Select it to log in using the i3 window manager instead of your regular desktop environment.
Why this step? This is how you switch from your regular desktop environment (like GNOME or KDE) to the tiling window manager. The login screen usually shows available session types.
4. Learn Basic i3 Keybindings
Once logged in, you'll see a black bar at the top of your screen. This is the i3 status bar. The most important keybindings to remember are:
- Mod (usually the Windows key or Alt key)
- Mod + Enter - Open a new terminal
- Mod + d - Open the application launcher
- Mod + Shift + q - Close a window
- Mod + Shift + e - Exit i3
Why this step? Understanding keybindings is crucial for using i3 effectively. The Mod key is the foundation of all commands, and these basic shortcuts will help you navigate and manage windows.
5. Open Your First Terminal
Press Mod + Enter to open your first terminal window. This should appear in the center of your screen, taking up half the available space.
Why this step? This demonstrates how i3 automatically arranges windows in a tiling pattern. The first window will be maximized, and subsequent windows will be arranged in a smart grid layout.
6. Open Additional Applications
Press Mod + d to open the application launcher, then search for and open Firefox or another browser. You'll notice it appears alongside your terminal in a split-screen layout.
Why this step? This shows how i3 handles multiple applications efficiently. The window manager automatically divides the screen space between your applications.
7. Resize Windows
Click on a window to select it, then press Mod + Shift + r to enter resize mode. Click and drag to resize the window to your preference.
Why this step? While i3 automatically arranges windows, you still need flexibility to adjust sizes based on your specific needs. This manual resizing capability gives you control.
8. Move Between Workspaces
Press Mod + 1 to switch to workspace 1, Mod + 2 for workspace 2, and so on. You can also create new workspaces by switching to a non-existent one.
Why this step? Workspaces help you organize different types of tasks. For example, you might keep your browser on workspace 1 and your development tools on workspace 2.
9. Configure i3 Settings
Press Mod + Shift + c to open the configuration editor. You can customize things like keybindings, colors, and behavior. For example, to change the Mod key, find the line:
set $mod Mod4
Change it to:
set $mod Mod1
Why this step? Customizing i3 allows you to make it work exactly as you want. Different users prefer different key layouts, so personalization is important.
10. Save Your Configuration
After making changes, save your configuration file (usually located at ~/.config/i3/config) and restart i3 with Mod + Shift + e to apply the changes.
Why this step? Saving your configuration ensures that your customizations persist after restarts. Without saving, all your changes would be lost.
Summary
Congratulations! You've successfully installed and configured the i3 tiling window manager. You now have a more efficient way to organize your desktop workspace. Tiling window managers like i3 eliminate the need for manual window resizing and positioning, allowing you to focus more on your work. The key benefits include:
- Automatic window arrangement
- Efficient use of screen real estate
- Quick switching between applications
- Workspace management for different tasks
Remember, the learning curve is worth the productivity boost. Practice using the keybindings regularly, and you'll become more efficient at managing your workspace. Feel free to explore other tiling window managers like dwm or bspwm once you're comfortable with i3.



