The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
3

Assign program to specific workspace ON specific output

asked Mar 21 '13

Using the following two lines I configured my i3 in such a way that my mail application appears on workspace "9:mail" on output "LVDS1":

assign [class="(?i)thunderbird"] 9:mail
workspace 9:mail output LVDS1

However, with this configuration, the workspace "9:mail" is created already on startup of i3 instead of a workspace 1 or 2 (depending on number of external monitors), even if thunderbird has not been started. Is there a way to prevent this?

1 answer

Sort by » oldest newest most voted
5

answered Mar 21 '13

vandannen gravatar image

updated Mar 21 '13

For each output, i3 will start on the workspace that was declared first in the config file. So, I would suggest to explicitly declare theses workspaces.

In order to start on workspace 1 for the first monitor and on workspace 6 for the second one (where the name of the monitor/output depends on your configuration, like LVDS0 and LVDS1):

workspace 1 output LVDS0
workspace 6 output LVDS1
...
workspace 9:mail output LVDS1

Comments

Thanks, that's working!

mschaefer gravatar imagemschaefer (Mar 21 '13)edit

Question Tools

Stats

Asked: Mar 21 '13

Seen: 1,592 times

Last updated: Mar 21 '13