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 theAlt
key or theWindows
/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
- Identify your
$mod
key: Confirm whether your$mod
key isAlt
orSuper
(Windows key). If unsure, try both. - Press the key combination: Hold down your
$mod
key, thenShift
, and finally presse
. For example, if your$mod
isAlt
, you would pressAlt+Shift+e
. - 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.