i3 Cheat Sheet

Here’s a cheat sheet for i3, a tiling window manager for X11:

Basic Keybindings

  • Mod Key:
    • Default Mod key is Mod4 (Windows/Super key). You can customize it.
  • Launching Applications:
    • Open terminal: Mod + Enter
    • Run prompt: Mod + D
  • Focus and Movement:
    • Switch focus between windows: Mod + Arrow keys
    • Move focused container: Mod + Shift + Arrow keys
  • Layouts:
    • Split horizontally: Mod + H
    • Split vertically: Mod + V
    • Toggle between horizontal and vertical splits: Mod + E
    • Toggle fullscreen: Mod + F
  • Workspaces:
    • Switch to workspace: Mod + [1-9]
    • Move container to workspace: Mod + Shift + [1-9]

Windows Management

  • Tabbed Mode:
    • Switch to tabbed mode: Mod + W
    • Switch to stacked mode: Mod + S
    • Switch to default (tiled) mode: Mod + E
  • Container Focus:
    • Focus parent container: Mod + A
    • Focus child container: Mod + D
  • Resize Containers:
    • Resize container horizontally: Mod + R followed by arrow keys
    • Resize container vertically: Mod + Shift + R followed by arrow keys
  • Floating Windows:
    • Toggle floating: Mod + Shift + Space
    • Move floating window: Mod + Left mouse button
    • Resize floating window: Mod + Right mouse button

Advanced Features

  • i3bar and Status Command:
    • Restart i3bar: Mod + Shift + R
    • Reload i3 configuration: Mod + Shift + C
  • Screenshots:
    • Take a screenshot: Mod + Print
    • Take a screenshot and copy to clipboard: Mod + Shift + Print
  • Custom Commands:
    • Create custom keybindings in the i3 configuration file (~/.config/i3/config).
  • Move Workspace to Output:
    • Move workspace to a different output: Mod + Shift + [1-9]

Configuration

  • Edit Configuration File:
    • Edit i3 configuration file: Mod + Shift + E
  • Reload Configuration:
    • Reload i3 configuration: Mod + Shift + C

Useful Commands

  • Run Command Prompt:
    • Open command prompt: Mod + D
  • Exit i3:
    • Exit i3 session: Mod + Shift + Q
  • Lock Screen:
    • Lock screen: Mod + Shift + X

This cheat sheet covers some fundamental i3 keybindings. Customize and extend it according to your preferences. For more details, refer to the official i3 User’s Guide.