Skip to content

Commit

Permalink
Properly document the split type modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
baskerville committed Aug 2, 2020
1 parent a9a2d00 commit 4abca9b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
25 changes: 11 additions & 14 deletions doc/bspwm.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: bspwm
.\" Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 08/01/2020
.\" Date: 08/02/2020
.\" Manual: Bspwm Manual
.\" Source: Bspwm 0.9.9-33-g1c795c3
.\" Source: Bspwm 0.9.9-34-ga9a2d00
.\" Language: English
.\"
.TH "BSPWM" "1" "08/01/2020" "Bspwm 0\&.9\&.9\-33\-g1c795c3" "Bspwm Manual"
.TH "BSPWM" "1" "08/02/2020" "Bspwm 0\&.9\&.9\-34\-ga9a2d00" "Bspwm Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
Expand Down Expand Up @@ -103,7 +103,7 @@ Select a node\&.
NODE_SEL := [NODE_SEL#](DIR|CYCLE_DIR|PATH|any|first_ancestor|last|newest|
older|newer|focused|pointed|biggest|smallest|
<node_id>)[\&.[!]focused][\&.[!]active][\&.[!]automatic][\&.[!]local]
[\&.[!]leaf][\&.[!]window][\&.[!]STATE][\&.[!]FLAG][\&.[!]LAYER]
[\&.[!]leaf][\&.[!]window][\&.[!]STATE][\&.[!]FLAG][\&.[!]LAYER][\&.[!]SPLIT_TYPE]
[\&.[!]same_class][\&.[!]descendant_of][\&.[!]ancestor_of]

STATE := tiled|pseudo_tiled|floating|fullscreen
Expand All @@ -112,6 +112,8 @@ FLAG := hidden|sticky|private|locked|marked|urgent

LAYER := below|normal|above

SPLIT_TYPE := horizontal|vertical

PATH := @[DESKTOP_SEL:][[/]JUMP](/JUMP)*

JUMP := first|1|second|2|brother|parent|DIR
Expand Down Expand Up @@ -274,16 +276,6 @@ Only consider nodes in the reference desktop\&.
Only consider leaf nodes\&.
.RE
.PP
[!]horizontal
.RS 4
Only consider nodes whose split type is horizontal\&.
.RE
.PP
[!]vertical
.RS 4
Only consider nodes whose split type is vertical\&.
.RE
.PP
[!]window
.RS 4
Only consider nodes that hold a window\&.
Expand Down Expand Up @@ -318,6 +310,11 @@ Only consider windows that have the given flag set\&.
.RS 4
Only consider windows in the given layer\&.
.RE
.PP
[!](horizontal|vertical)
.RS 4
Only consider nodes with the given split type\&.
.RE
.RE
.SS "Desktop"
.sp
Expand Down
14 changes: 7 additions & 7 deletions doc/bspwm.1.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Select a node.
NODE_SEL := [NODE_SEL#](DIR|CYCLE_DIR|PATH|any|first_ancestor|last|newest|
older|newer|focused|pointed|biggest|smallest|
<node_id>)[.[!]focused][.[!]active][.[!]automatic][.[!]local]
[.[!]leaf][.[!]window][.[!]STATE][.[!]FLAG][.[!]LAYER]
[.[!]leaf][.[!]window][.[!]STATE][.[!]FLAG][.[!]LAYER][.[!]SPLIT_TYPE]
[.[!]same_class][.[!]descendant_of][.[!]ancestor_of]
STATE := tiled|pseudo_tiled|floating|fullscreen
Expand All @@ -86,6 +86,8 @@ FLAG := hidden|sticky|private|locked|marked|urgent
LAYER := below|normal|above
SPLIT_TYPE := horizontal|vertical
PATH := @[DESKTOP_SEL:][[/]JUMP](/JUMP)*
JUMP := first|1|second|2|brother|parent|DIR
Expand Down Expand Up @@ -174,12 +176,6 @@ Modifiers
[!]leaf::
Only consider leaf nodes.

[!]horizontal::
Only consider nodes whose split type is horizontal.

[!]vertical::
Only consider nodes whose split type is vertical.

[!]window::
Only consider nodes that hold a window.

Expand All @@ -201,6 +197,10 @@ Modifiers
[!](below|normal|above)::
Only consider windows in the given layer.

[!](horizontal|vertical)::
Only consider nodes with the given split type.


Desktop
~~~~~~~

Expand Down

0 comments on commit 4abca9b

Please sign in to comment.