Ora

How to exit i3 Linux?

Published in i3 Exit 2 mins read

The primary and recommended method to exit the i3 window manager in Linux is by using the key combination $mod+Shift+e. This allows for a clean exit without terminating your X server.

Understanding the Exit Command

Exiting i3 involves a straightforward key sequence that is designed to be both efficient and safe.

  • What is $mod?
    In i3, $mod is a placeholder for your primary modifier key. By default, this is often the Alt key or the Windows / Super key. You can check or change your specific $mod key in your i3 configuration file (typically ~/.config/i3/config).

  • The Confirmation Dialog
    When you press $mod+Shift+e, i3 will, by default, present a small dialog box asking you to confirm if you truly wish to quit. This is a crucial safety feature to prevent accidental exits, ensuring you don't lose unsaved work by mistakenly pressing the key combination.

  • Clean Exit
    Using $mod+Shift+e ensures you cleanly exit i3 without killing your X server. This is important because killing the X server would result in logging you out of your graphical session entirely, potentially closing all running applications and requiring a full re-login. A clean i3 exit simply stops the window manager, usually returning you to a display manager login screen or a terminal, depending on how your system is configured.

Step-by-Step Guide to Exiting i3

  1. Identify your $mod key: Confirm whether your $mod key is Alt or Super (Windows key). If unsure, try both.
  2. Press the key combination: Hold down your $mod key, then Shift, and finally press e. For example, if your $mod is Alt, you would press Alt+Shift+e.
  3. Confirm your action: A dialog box will appear. Use your mouse or keyboard (e.g., arrow keys and Enter) to select "Yes" or "Quit" to confirm you want to exit i3.

Quick Reference for i3 Exit

Action Keybinding Description
Exit i3 $mod+Shift+e Cleanly quits the i3 window manager.

This method is part of i3's robust design, offering users control and safety when managing their desktop environment. For more information on i3 keybindings and configuration, you can refer to the official i3 user's guide.