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 2013-01-20 21:02:21 +0000

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! :-)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-01-22 06:25:15 +0000

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.

edit flag offensive delete link more
0

answered 2013-01-22 02:00:22 +0000

X output names can be shown with xrandr.

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

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-20 21:02:21 +0000

Seen: 180 times

Last updated: Jan 22 '13