.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 09/08/2020
.\" Manual: Bspwm Manual
-.\" Source: Bspwm 0.9.10-8-ge64864b
+.\" Source: Bspwm 0.9.10-9-gab72002
.\" Language: English
.\"
-.TH "BSPWM" "1" "09/08/2020" "Bspwm 0\&.9\&.10\-8\-ge64864b" "Bspwm Manual"
+.TH "BSPWM" "1" "09/08/2020" "Bspwm 0\&.9\&.10\-9\-gab72002" "Bspwm Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
[MONITOR_SEL:](focused|^<n>)|
<desktop_id>|<desktop_name>)[\&.[!]focused][\&.[!]active]
[\&.[!]occupied][\&.[!]urgent][\&.[!]local]
+ [\&.[!]LAYOUT][\&.[!]user_LAYOUT]
+
+LAYOUT := tiled|monocle
.fi
.if n \{\
.RE
.RS 4
Only consider desktops inside the reference monitor\&.
.RE
+.PP
+[!](tiled|monocle)
+.RS 4
+Only consider desktops with the given layout\&.
+.RE
+.PP
+[!](user_tiled|user_monocle)
+.RS 4
+Only consider desktops which have the given layout as userLayout\&.
+.RE
.RE
.SS "Monitor"
.sp
[MONITOR_SEL:](focused|^<n>)|
<desktop_id>|<desktop_name>)[.[!]focused][.[!]active]
[.[!]occupied][.[!]urgent][.[!]local]
+ [.[!]LAYOUT][.[!]user_LAYOUT]
+
+LAYOUT := tiled|monocle
----
Descriptors
[!]local::
Only consider desktops inside the reference monitor.
+[!](tiled|monocle)::
+ Only consider desktops with the given layout.
+
+[!](user_tiled|user_monocle)::
+ Only consider desktops which have the given layout as userLayout.
+
Monitor
~~~~~~~
GET_MOD(active)
GET_MOD(urgent)
GET_MOD(local)
+ GET_MOD(tiled)
+ GET_MOD(monocle)
+ GET_MOD(user_tiled)
+ GET_MOD(user_monocle)
} else {
return false;
}
.focused = OPTION_NONE,
.active = OPTION_NONE,
.urgent = OPTION_NONE,
- .local = OPTION_NONE
+ .local = OPTION_NONE,
+ .tiled = OPTION_NONE,
+ .monocle = OPTION_NONE,
+ .user_tiled = OPTION_NONE,
+ .user_monocle = OPTION_NONE
};
return sel;
}
return false;
}
+#define DLAYOUT(p, e) \
+ if (sel->p != OPTION_NONE && \
+ loc->desktop->layout != e \
+ ? sel->p == OPTION_TRUE \
+ : sel->p == OPTION_FALSE) { \
+ return false; \
+ }
+ DLAYOUT(tiled, LAYOUT_TILED)
+ DLAYOUT(monocle, LAYOUT_MONOCLE)
+#undef DLAYOUT
+
+#define DUSERLAYOUT(p, e) \
+ if (sel->p != OPTION_NONE && \
+ loc->desktop->user_layout != e \
+ ? sel->p == OPTION_TRUE \
+ : sel->p == OPTION_FALSE) { \
+ return false; \
+ }
+ DUSERLAYOUT(user_tiled, LAYOUT_TILED)
+ DUSERLAYOUT(user_monocle, LAYOUT_MONOCLE)
+#undef DUSERLAYOUT
+
return true;
}
option_bool_t active;
option_bool_t urgent;
option_bool_t local;
+ option_bool_t tiled;
+ option_bool_t monocle;
+ option_bool_t user_tiled;
+ option_bool_t user_monocle;
} desktop_select_t;
typedef struct {