cycle_desktop next|prev [--skip-free|--skip-occupied]
Select the next or previous desktop.
- layout monocle|tiled
- Set the layout of the current desktop.
+ layout monocle|tiled [DESKTOP_NAME ...]
+ Set the layout of the given desktops (current if none given).
cycle_layout
Cycle the layout of the current desktop.
.BI cycle_desktop " next|prev [--skip-free|--skip-occupied]"
Select the next or previous desktop.
.TP
-.BI layout " monocle|tiled"
-Set the layout of the current desktop.
+.BI layout " monocle|tiled [DESKTOP_NAME ...]"
+Set the layout of the given desktops (current if none given).
.TP
.BI cycle_layout
Cycle the layout of the current desktop.
} else if (strcmp(cmd, "layout") == 0) {
char *lyt = strtok(NULL, TOKEN_SEP);
if (lyt != NULL) {
- layout_t l;
- if (parse_layout(lyt, &l)) {
- mon->desk->layout = l;
+ layout_t y;
+ if (parse_layout(lyt, &y)) {
+ char *name = strtok(NULL, TOKEN_SEP);
+ if (name == NULL) {
+ mon->desk->layout = y;
+ } else {
+ desktop_location_t loc;
+ do {
+ if (locate_desktop(name, &loc))
+ loc.desktop->layout = y;
+ } while ((name = strtok(NULL, TOKEN_SEP)) != NULL);
+ }
}
}
} else if (strcmp(cmd, "cycle_layout") == 0) {