Show applications in tiling or overlapping mode in i3
Contents
This blog collects some key but tricky configurations that used for i3 window manager. For more, one may refer to the official user’s guide.
Tiling/overlapping windows
There might be applications that you prefer to run in the overlapping mode, such as GoldenDict, or some popup dialogues like composing new emails in Thunderbird. To customize these behaviors, we need to first get their IDs and then configure them specifically in ~/.config/i3/config
. For example,
|
|
Window identifiers
To retrieve the identifiers of these specific windows, you need to use a tool, xprop
. Run xprop
in terminal, then you move your mouse over the target window/dialogue and left click it. Go back to the terminal where you run xprop
, you will see all the identifier information related to this window. Here is a list of terms in the xprop
output:
-
WM_CLASS
: mostly the first and the second strings are the same. The first string refers toinstance
ini3/config
and the second refers toclass
. -
WM_NAME
: mostly we don’t need this identifier, which refers totitle
ini3/config
. However, you need to specifies a particular dialogue of an app, you may not distinguish it from the other dialogues by only usingWM_CLASS
. For example, we prefer to show MATLAB figure plot windows in the overlapped mode.
For most settings, only class
is required, and thus one may use xprop | grep CLASS
to get a short output of xporp
.
Configure tiling/overlapping rules
By default, every window is in the tilting mode. If you want an app or a window shown in the overlapped mode, you need to specify key words floating enable
. For example,
|
|
If you prefer a default window size, you may specify it by resize set HEIGHT WIDTH
. You could append it after other specifications, for instance,
|
|
Default workspace to applications
You may prefer to always using one workspace to show a specific application. For example, I use workspace 1
for Thunderbird and workspace 2
for Chromium. We can use the following configurations:
|
|
Again, the class
string can be retrieved by xprop
.
Author oracleyue
LastMod 2019-11-07