i3: Map application to workspace
When using i3: Applications can be moved automatically to specific workspaces at start of the app. Do the following:
- Start the app
- Run in a terminal
xprop
- Click on the app
- Find
WM_CLASS(STRING)
in the terminal's output and copy the app's name (e.g. "Firefox") - Append a line into
~/.i3/config
such asassign [class="Firefox"] $ws1
where$ws1
is the workspace's name - Reload i3's config, e.g. MOD+SHIFT+r