]> git.sur5r.net Git - i3/i3/commit - include/workspace.h
Implement assignments of workspaces to screens, big cleanup of workspace code
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 8 Aug 2009 17:51:51 +0000 (19:51 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 8 Aug 2009 17:51:51 +0000 (19:51 +0200)
commit47a798ac4a5b7ac22dcd101220804032db44b7c1
treef61536ce8a56cb70820baf2a26412fd40a5b89d2
parent6192975a041eaacb267ddabc0c2dcb4f33e3b58b
Implement assignments of workspaces to screens, big cleanup of workspace code

Please test this! Plug in screens, unplug them, use your video projector,
change resolutions, etc.

To use the assignments, use the following syntax:
workspace <number> [screen <screen>] [name]

Where screen can be one of:
<number> (It is not provided that these numbers stay constant, so use with care)
<x>x<y> (Coordinates where the screen starts, so 1280 will be fine to match the
 screen right of the main screen if your main screen is 1280 pixels
 width. However, 1281 will not match)
<x>
x<y>

Some examples follow:

 workspace 1 screen 0
 workspace 1 screen 1
 workspace 1 screen 1280x0
 workspace 2 screen 1280
 workspace 3 screen x0
 workspace 3 screen 1 www
 workspace 4 screen 0 mail
14 files changed:
include/commands.h
include/data.h
include/util.h
include/workspace.h
include/xinerama.h
src/commands.c
src/config.c
src/handlers.c
src/layout.c
src/mainx.c
src/manage.c
src/util.c
src/workspace.c
src/xinerama.c