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

Different configs depending on number of screens

asked Jan 20 '13

cdown gravatar image

Is it possible to have different config options apply depending on the number of screens?

Also, I'm wishing to change which workspace outputs on which screen based upon the number of screens, but I don't know the X output names beforehand. Is there some way to say "screen 1" instead of something like workspace 1 output LVDS1?

Thanks! :-)

2 answers

Sort by » oldest newest most voted
0

answered Jan 22 '13

Michael gravatar image

In the future, please ask precisely one question per post.

Is it possible to have different config options apply depending on the number of screens?

By using an external script/program to generate your config file: sure. It might help if you could edit your question and provide an example.

Also, I'm wishing to change which workspace outputs on which screen based upon the number of screens, but I don't know the X output names beforehand. Is there some way to say "screen 1" instead of something like workspace 1 output LVDS1?

No, since screens are not ordered deterministically, this method has been abandoned when i3 started to support RandR. Again, a script might help here.

0

answered Jan 22 '13

X output names can be shown with xrandr.

You can say "workspace 1 output left" and "workspace 2 output right".

Question Tools

Stats

Asked: Jan 20 '13

Seen: 180 times

Last updated: Jan 22 '13