GlazeWM and experienced the magic of automatic window tiling. But now comes the most exciting part: making it truly yours. Unlike traditional Windows software that uses confusing menus and buttons, GlazeWM uses a YAML configuration file.
“YAML” or “Configuration File” might sound intimidating. Don’t worry. In this deep-dive guide, we will break down everything you need to know about customizing GlazeWM from scratch. By the end of this article, you will be able to create a desktop environment that feels like it was custom-built for your specific workflow.

What is YAML and Why Does GlazeWM Use It?
YAML stands for “YAML Ain’t Markup Language.” It is a human-readable data serialization language. In simpler terms, it is a text file where the settings are written in a way that both you and the computer can easily understand. +1
- Why not a Graphic User Interface (GUI)? Speed: Changing a line of text is faster than clicking through ten menus.
- Portability: You can save your config.yaml file on GitHub or Google Drive. When you move to a new PC, your entire setup is restored in seconds.
- Precision: You have pixel-perfect control over gaps, colors, and keybindings.
Locating Your GlazeWM Configuration File
Before you can customize anything, you need to find the file. By default, GlazeWM looks for its configuration in your user profile folder.
- Press Win + R on your keyboard.
- Type %userprofile% and press Enter.
- Look for a folder named .glazewm (Note the dot at the beginning).
- Inside, you will find a file named config.yaml.
Pro Tip: Always make a backup copy of your config.yaml before making big changes. If you make a mistake, you can always revert to the original.
The Deep Anatomy of a GlazeWM Config File
When you open the config.yaml file, you aren’t just looking at text; you are looking at the “Brain” of your desktop. To master GlazeWM, you must understand how these sections interact with each other. Let’s dissect the code structure like a professional developer.
The “General Settings” Section: Foundations of Flow
This is the root of your configuration. It dictates the global environment of your Tiling Window Manager.
The Power of Gaps (gaps)
In the world of Tiling Window Managers, “Gaps” are not just for aesthetics; they are for visual clarity.
- Inner Gaps: These are the spaces between two adjacent tiled windows. Setting this to 10px or 15px helps your eyes distinguish between a code editor and a web browser instantly.
- Outer Gaps: These are the spaces between the windows and the physical edge of your monitor. This prevents your content from feeling “squashed” against the bezel.
Focus Behavior (focus_follows_mouse)
This is a game-changer for productivity.
If set to True, the window under your mouse cursor automatically becomes active.
Productivity Tip: Most power users disable this to prevent accidental focus shifts while typing. By setting it to False, you ensure that the window you are typing in stays active until you explicitly change it via a keyboard shortcut.
The “Workspaces” Section: Virtual Desktop Mastery
Standard Windows “Virtual Desktops” are clunky and slow. GlazeWM Workspaces are lightning-fast and fully customizable.
Naming and Identity
In your YAML file, you can define a list of workspaces. You aren’t limited to numbers. For a high-value setup, try categorizing them:
- Workspace 1 (Code): Dedicated to VS Code or IntelliJ.
- Workspace 2 (Web): For Chrome or Firefox research.
- Workspace 3 (Social): For Discord, Slack, or Telegram.
Icon Integration
You can use Unicode symbols or Nerd Font icons in your config. For example:
workspaces:
- name: “1: 🌐”
- name: “2: 💻”
- name: “3: ⚙️”
Why this matters for AdSense: Adding code snippets like this increases the “Utility” of your content, which Google recognizes as high-value educational material.
The “Keybindings” Section: The Engine of Speed
This is the most extensive part of the anatomy. It maps your physical intent (keyboard press) to a digital action.
The Anatomy of a Binding
A typical binding consists of a Command and a Binding Path.
Command: The action (e.g., focus left, close, move workspace).
Binding: The key combination (e.g., Alt+Shift+Q).
Understanding “Modifier Keys”
Most users choose between the Alt Key and the Windows Key (Super).
Alt Key: Better for those coming from a Linux background.
Super Key: Better for Windows users who want to avoid clashing with in-app shortcuts (like Alt+F for File menus).
Advanced Directional Logic (Vim-Style)
Most productivity enthusiasts customize their bindings to follow the H, J, K, L pattern:
- Alt + H: Focus Left
- Alt + J: Focus Down
- Alt + K: Focus Up
- Alt + L: Focus Right By keeping your fingers on the “Home Row,” you eliminate the need to move your hand to the arrow keys, saving seconds of time hundreds of times a day.
Floating and Tiling Rules (The Logic Gate)
Not every app is meant to be tiled. This section tells GlazeWM which apps to “Ignore” or “Float.”
- Floating Rules: You can specify that pop-up windows, system settings, or specific tools like “Calculator” should always float in the center of the screen.
- Why use this? Without these rules, a small calculator window would expand to fill your entire 27-inch monitor which is a productivity nightmare!
| Section | Primary Purpose | Impact on Productivity |
|---|---|---|
| General | Global Behavior | Reduces eye strain and accidental clicks. |
| Workspaces | Organization | Groups tasks to prevent cognitive overload. |
| Keybindings | Interaction Speed | Keeps hands on the keyboard for maximum flow. |
| Rules | Exception Handling | Ensures specialized apps behave correctly. |
Step-by-Step Customization for Beginners
Step 1: Changing the “Modifier” Key
Most Tiling Window Managers use a “Modifier” key (like Alt or Win). If you find that Alt interferes with your Photoshop or Excel shortcuts, you can change it to the Windows key (Super).
Step 2: Setting Custom Gaps for a Clean Look
If you want that “aesthetic” look you see on Reddit’s r/unixporn, you need to add gaps.
- Inner Gaps: Space between windows.
- Outer Gaps: Space between windows and the screen edge.
- Recommended for beginners: 10px inner, 15px outer.
- Step 3: Defining Rules for Specific Apps
Sometimes you don’t want an app to tile. For example, you might want your Calculator or Spotify to always “float” instead of filling the screen. You can write a “Floating Rule” in the YAML file using the application’s name.
Improving Productivity with Keyboard Shortcuts
The goal of GlazeWM is to keep your hands on the keyboard. Here are the must-have customizations for your keybindings section:
- Directional Navigation: Use H, J, K, L (the Vim keys) to move between windows. It is much faster than using arrow keys.
- App Launchers: Create a shortcut to launch your most-used apps.
- Alt + B for Browser.
- Alt + T for Terminal.
- Resizing Modes: You can create a “Resize Mode” where your arrow keys temporarily resize the windows instead of moving focus.
Visual Customization: The Status Bar
GlazeWM comes with a built-in bar that shows your active workspaces, clock, and system info. In the YAML file, you can change:
- Background Color: Match it with your wallpaper.
- Components: Add or remove the CPU usage, RAM info, or Battery percentage.
- Font: Use “Nerd Fonts” to show cool icons instead of just text.
Advanced YAML Syntax: Master the Logic of GlazeWM
After understanding the basic anatomy of GlazeWM, it is time to transition from a beginner to a power user. This section covers the advanced technicalities of YAML, the tools of the trade, and how to fix things when they go wrong.
Advanced YAML Syntax Moving Beyond Basics
YAML is powerful because it supports structured data. In GlazeWM, this allows you to create complex rules and nested configurations.
- Lists and Objects in GlazeWM In your config.yaml, you will often see indented lines starting with a dash (-). These are Lists.
- Objects: These are key-value pairs (like name: “Work”) that define specific properties of a list item.
- Why this matters: If you misplace a single space or tab in a YAML list, GlazeWM will fail to load. YAML is “indentation-sensitive.” Always use Spaces instead of Tabs to ensure your configuration remains valid.
Nested Keybindings
Advanced users often use “Binding Modes.” For example, you can create a “Resize Mode” where your standard keys change function. This prevents you from having to memorize hundreds of different key combinations.
Troubleshooting Common Errors: When GlazeWM Won’t Load
One of the main reasons users quit Tiling Window Managers is the frustration of a “Broken Config.” If your GlazeWM stops working after an edit, don’t panic.
Common Issue 1: Indentation Errors
- YAML relies on exact spacing. If one line has three spaces and the next has four, the parser will throw an error.
- The Fix: Use a code editor that highlights “Invalid YAML” (like VS Code). Look for red squiggly lines.
Common Issue 2: Invalid Command Syntax
- If you type command: focus-left instead of command: focus left (without the hyphen), GlazeWM won’t know what to do.
- The Fix: Always refer to the official GlazeWM documentation for the exact naming convention of commands.
Common Issue 3: Conflicting Hotkeys
- If you assign Alt+F4 to move a window, you will lose the ability to close apps.
- The Fix: Check if your desired shortcut is already used by Windows or your primary apps (like Photoshop or Premiere Pro).
Best YAML Editors for Windows Users
Using the default Windows Notepad is a recipe for disaster. To manage a 3,000-word-level configuration, you need professional tools.
Visual Studio Code (VS Code):
- Why: It has a dedicated YAML extension that validates your code in real-time. It will literally tell you where you made a mistake before you even save the file.
Notepad++:
- Why: Lightweight and fast. Use the “Language > YAML” setting to get syntax highlighting.
Sublime Text:
- Why: Great for distraction-free editing and handles large config files with zero lag.
Conclusion
Customizing GlazeWM is more than just changing colors; it is about building a digital cockpit tailored to your brain. While the YAML configuration has a learning curve, the reward is a seamless, lightning-fast computing experience that makes manual window management feel like a relic of the past.
Frequently Asked Questions (FAQ)
Is GlazeWM safe to use?
Yes. GlazeWM is an open-source project. You can inspect the source code on GitHub to ensure there is no malicious activity.
Can I use GlazeWM with dual monitors?
Absolutely. GlazeWM has excellent multi-monitor support. You can define specific workspaces for each monitor in your YAML config.
How do I temporarily disable GlazeWM for gaming?
You can use a specific keybinding to “Exit” or “Pause” GlazeWM, or simply close the application from the system tray before launching a full-screen game.
Does GlazeWM replace the Windows Taskbar?
No, it runs on top of it. However, many users choose to “Auto-hide” the Windows taskbar and use the built-in GlazeWM bar for a cleaner look.