Changes

no edit summary
Line 1: Line 1: −
<span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span>
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether a specific notification is currently present.</pre>
   −
This constraint can be used to allow a trigger to fire only when a notification from a particular app is present or not present in the status bar.
+
''' Options '''
 +
 
 +
* '''App''' - Select specific applications to match against (or match against all apps)
 +
* '''Text Content''' - Match against any text, or against text matching, containing or excluding a specific value
 +
* '''Enable regular expression matching''' - Use regex for advanced matching
 +
* '''Case insensitive''' - Ignore uppercase/lowercase differences when comparing
 +
* '''Ignore ongoing notifications''' - Exclude matching any peristent notifications if this option is enabled
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Launch Slack only when a mention notification is present''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Screen On/Off - Screen On</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Launch Application: Slack</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Notification Present - Slack (Contains "@")</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Notification|Notification Trigger]]