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

How can I define workspace numbers for specific monitors?

asked Jun 28 '14

winchendonsprings gravatar image

I have a dual monitor setup and I'd like to override the default way i3 handles workspaces per monitor. Currently "New workspaces will be opened on the currently active monitor."

I'd prefer it if, for example, it was 1+2 and 3+4 and 5+6 etc. Sort of like one big screen so when I move from screen 2 to screen 5, I got from 1+2 to 5+6.

Is this possible to config?

1 answer

Sort by » oldest newest most voted
3

answered Jun 28 '14

ANOKNUSA gravatar image

See section 4.14 of the User's Guide.

Comments

This describes how to assign worspaces to monitors, not how to switch from 1+2 to 3+4 at a time. For example, I'm on worspace 1 and I switch to workspace 3, I'm still looking at workspace 2 on the second monitor rather than workspace 4.

winchendonsprings gravatar imagewinchendonsprings (Jun 28 '14)edit
1

It isn't really clear what you're asking. If you want two workspaces per screen, assign them to the appropriate screen and they'll be created as you switch to them. Workspaces only exist after they're explicitly created, so you won't see them until you switch to them.

ANOKNUSA gravatar imageANOKNUSA (Jun 28 '14)edit
1

If you're looking to switch two workspaces at a time---so the switch happens one on both monitors simultaneously---assign each workspace to the appropriate monitor and then bind switching to both workspaces to a single keybinding.

ANOKNUSA gravatar imageANOKNUSA (Jun 28 '14)edit

Thanks! Perfect, your second comment here is exaclty what I was looking for.

winchendonsprings gravatar imagewinchendonsprings (Jun 29 '14)edit

For anyone interested in how I did it...see line starting at 91 and 124 - http://pastebin.com/dFBY52z7 thanks again @ANOKUSA

winchendonsprings gravatar imagewinchendonsprings (Jun 29 '14)edit

Question Tools

Stats

Asked: Jun 28 '14

Seen: 638 times

Last updated: Jun 28 '14