Name Synopsis Options
Name Synopsis Options
Name Synopsis Options
NAME
i3 - an improved dynamic, tiling window manager
SYNOPSIS
i3 [-a] [-c configfile] [-C] [-d all] [-v] [-V]
OPTIONS
-a
Disables autostart.
-c
Specifies an alternate configuration file path.
-C
Check the configuration file for validity and exit.
-d all
Enables debug logging. The all parameter is present for historical reasons.
-v
Display version number (and date of the last commit).
-V
Be verbose.
--force-xinerama
Use Xinerama instead of RandR. This option should only be used if you are stuck with the old nVidia
closed source driver (older than 302.17) which does not support RandR.
--get-socketpath
Retrieve the i3 IPC socket path from X11, print it, then exit.
--shmlog-size <limit>
Limits the size of the i3 SHM log to <limit> bytes. Setting this to 0 disables SHM logging entirely.
The default is 0 bytes.
DESCRIPTION
INTRODUCTION
i3 was created because wmii, our favorite window manager at the time, didn’t provide some features we
wanted (multi-monitor done right, for example), had some bugs, didn’t progress since quite some time and
wasn’t easy to hack at all (source code comments/documentation completely lacking). Still, we think the
wmii developers and contributors did a great job. Thank you for inspiring us to create i3.
i3 4.16 11/04/2018 1
I3(1) i3 Manual I3(1)
floating windows can be fine-tuned with the for_window command (see HTML userguide).
Split container
A split container contains multiple other split containers or windows.
Containers can be used in various layouts. The default mode is called "default" and just resizes each
client equally so that it fits.
Workspace
A workspace is a set of containers. Other window managers call this "Virtual Desktops".
In i3, each workspace is assigned to a specific virtual screen. By default, screen 1 has workspace 1,
screen 2 has workspace 2 and so on... However, when you create a new workspace (by simply
switching to it), it’ll be assigned the screen you are currently on.
Output
Using XRandR, you can have an X11 screen spanning multiple real monitors. Furthermore, you can
set them up in cloning mode or with positions (monitor 1 is left of monitor 2).
i3 uses the RandR API to query which outputs are available and which screens are connected to these
outputs.
KEYBINDINGS
Here is a short overview of the default keybindings:
Mod1+Enter
Open a new terminal emulator window.
Mod1+d
Open dmenu for starting any application by typing (part of) its name.
j/k/l/;
Direction keys (left, down, up, right). They are on your homerow (see the mark on your "j" key).
Alternatively, you can use the cursor keys.
Mod1+<direction>
Focus window in <direction>.
Mod1+Shift+<direction>
Move window to <direction>.
Mod1+<number>
Switch to workspace <number>.
Mod1+Shift+<number>
Move window to workspace <number>.
Mod1+f
Toggle fullscreen mode.
Mod1+s
Enable stacking layout for the current container.
Mod1+e
Enable default layout for the current container.
Mod1+w
Enable tabbed layout for the current container.
Mod1+Shift+Space
Toggle tiling/floating for the current container.
Mod1+Space
Select the first tiling container if the current container is floating and vice-versa.
i3 4.16 11/04/2018 2
I3(1) i3 Manual I3(1)
Mod1+Shift+q
Kills the current window. This is equivalent to "clicking on the close button", meaning a polite request
to the application to close this window. For example, Firefox will save its session upon such a request.
If the application does not support that, the window will be killed and it depends on the application
what happens.
Mod1+Shift+r
Restarts i3 in place. Your layout will be preserved.
Mod1+Shift+e
Exits i3.
FILES
˜/.i3/config (or ˜/.config/i3/config)
When starting, i3 looks for configuration files in the following order:
1. ˜/.config/i3/config (or $XDG_CONFIG_HOME/i3/config if set)
2. ˜/.i3/config
3. /etc/xdg/i3/config (or $XDG_CONFIG_DIRS/i3/config if set)
4. /etc/i3/config
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.
# start a terminal
bindsym Mod1+Return exec /usr/bin/urxvt
# change focus
bindsym Mod1+j focus left
bindsym Mod1+k focus down
bindsym Mod1+l focus up
bindsym Mod1+semicolon focus right
i3 4.16 11/04/2018 3
I3(1) i3 Manual I3(1)
# switch to workspace
bindsym Mod1+1 workspace 1
bindsym Mod1+2 workspace 2
# ..
i3 4.16 11/04/2018 4
I3(1) i3 Manual I3(1)
˜/.xsession
This file is where you should configure your locales and start i3. It is run by your login manager (xdm, slim,
gdm, ...) as soon as you login.
Sample xsession.
# Disable bell
xset -b
ENVIRONMENT
i3 4.16 11/04/2018 5
I3(1) i3 Manual I3(1)
I3SOCK
This variable overwrites the IPC socket path (placed in /tmp/i3-%u.XXXXXX/ipc-socket.%p by default,
where %u is replaced with your UNIX username, %p is replaced with i3’s PID and XXXXXX is a string of
random characters from the portable filename character set (see mkdtemp(3))). The IPC socket is used by
external programs like i3-msg(1) or i3bar(1).
TODO
There is still lot of work to do. Please check our bugtracker for up-to-date information about tasks which
are still not finished.
SEE ALSO
You should have a copy of the userguide (featuring nice screenshots/graphics which is why this is not
integrated into this manpage), the debugging guide, and the "how to hack" guide. If you are building from
source, run: make -C docs
i3 4.16 11/04/2018 6