Difference between revisions of "Constraint: Notification Present"
| Line 1: | Line 1: | ||
| − | < | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether a specific notification is currently present.</pre> |
| − | + | ''' 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]] | ||
Latest revision as of 13:35, 9 January 2026
This constraint allows or prevents a macro/feature from running based on whether a specific notification is currently present.
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
Triggers Screen On/Off - Screen On
Actions Launch Application: Slack
Constraints Notification Present - Slack (Contains "@")
See Also