Skip to content

Commit 1532df3

Browse files
committed
Update man page for generalized string matching
1 parent b489396 commit 1532df3

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

mako.5.scd

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,19 +287,7 @@ The following fields are available in criteria:
287287
- _app-name_ (string)
288288
- _app-icon_ (string)
289289
- _summary_ (string)
290-
- An exact match on the summary of the notification.
291-
- This field conflicts with _summary~_.
292-
- _summary~_ (string)
293-
- A POSIX extended regular expression match on the summary of the
294-
notification.
295-
- This field conflicts with _summary_.
296290
- _body_ (string)
297-
- An exact match on the body of the notification.
298-
- This field conflicts with _body~_.
299-
- _body~_ (string)
300-
- A POSIX extended regular expression match on the body of the
301-
notification.
302-
- This field conflicts with _body_.
303291
- _urgency_ (one of "low", "normal", "critical")
304292
- _category_ (string)
305293
- _desktop-entry_ (string)
@@ -324,7 +312,7 @@ where previous style options decided to place each notification:
324312
- _output_ (string)
325313
- Which output the notification was sorted onto. See the output style
326314
option for possible values.
327-
- _anchor_ (string)
315+
- _anchor_ (e.g. "top-center", "center-right", "center"...)
328316
- Which position on the output the notification was assigned to. See the
329317
anchor style option for possible values.
330318

@@ -342,7 +330,19 @@ Quotes within quotes may also be escaped, and a literal backslash may be
342330
specified as \\\\. No spaces are allowed around the equal sign. Escaping equal
343331
signs within values is unnecessary.
344332

345-
Additionally, boolean values may be specified using any of true/false, 0/1, or
333+
All string fields except mode and output support additional operators != and ~=
334+
335+
- != indicates a non-match
336+
- ~= indicates a POSIX extended regular expression match
337+
338+
These string fields can also be specified as a bare word, which is equivalent to
339+
comparisons with the empty string:
340+
341+
\[summary\] \[summary!=""\]
342+
343+
\[!summary\] \[summary=""\]
344+
345+
Boolean values may be specified using any of true/false, 0/1, or
346346
as bare words:
347347

348348
\[actionable=true\] \[actionable=1\] \[actionable\]

0 commit comments

Comments
 (0)