📎 Webclip
Configuring i3 Window Manager: a Complete Guide
The article argues that i3 is a lighter alternative to full desktop environments, especially for people who use the terminal often and want more control without relying on the mouse. It explains that i3 uses a tree structure of workspaces, containers, and windows, and that its behavior can be shaped through a config file.
Reading notes#
- i3 is presented as a Linux-only window manager that can be tried on top of an existing desktop or in a virtual machine.
- It is described as light, minimalist, flexible, and usable without a mouse.
- The article suggests keeping a personal cheatsheet for i3 shortcuts while learning and changing them.
- Workspaces are treated as virtual desktops, and containers organize windows with split, stacked, or tabbed layouts.
- Windows can be fixed or floating, and floating windows are meant for pop-ups and similar tools.
- The default modifier key is
mod4, and the article uses$modto refer to it. - The default shortcut examples cover opening terminals, focusing windows, moving them, changing layouts, reloading the config, restarting i3, and quitting.
- i3 loads config files in a specific order, with
~/.config/i3/configor~/.i3/configas the main user config. - The config uses variables with
set, and commands are bound withbindsymorbindcode. dmenuis used as the program launcher instead of a start menu.- The article rewrites focus and move bindings to use Vim-style
hjklkeys. - It also shows how to rebind container splitting keys and how to name workspaces with custom labels.
workspace_auto_back_and_forth yesmakes the same workspace key switch back to the last workspace.- Applications can be assigned to a specific workspace using
assigntogether withclassandinstancevalues fromxprop | grep WM_CLASS. - Window resizing is also mapped to
hjkl, and resize mode must be entered first. focus_follows_mousecan be set tonoto prevent focus from changing on hover.- The screen lock setup uses
i3lock, and the article shows both a simple wallpaper option and a script that pixelizes a screenshot before locking. - A custom system menu is built with
dmenuto lock, log out, suspend, hibernate, reboot, or power off. fehis used to set a wallpaper when switching to empty workspaces.- Floating rules can be set by
window_role,class, orinstanceso that certain windows open as floating automatically. - Colors can be reused from Xresources with
set_from_resource, and the status bar can be customized withi3statusand bar color settings. - ARandR is used to configure monitors, save an
xrandrscript, and launch different screen layouts from an i3 mode menu.
