From aacdbac910e1925fb2dbf4c83ba7a9e9973bb2ea Mon Sep 17 00:00:00 2001 From: Nik Date: Thu, 9 Jan 2020 15:12:25 -0800 Subject: [PATCH] Add docs for label command https://github.com/koekeishiya/yabai/issues/119 --- Commands.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Commands.md b/Commands.md index dee4ae1..f7fd6c7 100644 --- a/Commands.md +++ b/Commands.md @@ -75,6 +75,19 @@ yabai -m space --move next yabai -m space --display 2 ``` +#### Labeling Spaces + +Spaces can be given labels, which allow referring to a space by the given label in subsequent commands. + +To label a space use the `--label` command: + +``` +yabai -m space 1 --label main +yabai -m space 2 --label sm + +yabai -m space --focus main +``` + #### Modify window tree In bsp spaces commands can be used to modify the window tree, affecting all windows on the space.