Difference between revisions of "Constraint: Headphone Connection"
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <pre | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether headphones are connected.</pre> |
| − | This constraint | + | |
| − | </pre> | + | ''' Options ''' |
| + | |||
| + | * '''Connected''': Constraint passes only when headphones are connected | ||
| + | * '''Disconnected''': Constraint passes only when headphones are disconnected | ||
| + | * '''With/Without Mic''' - Optionally filter by microphone presence | ||
| + | |||
| + | ''' Example ''' | ||
| + | |||
| + | ''Example 1: Speaks notifications only when headphones are connected.'' | ||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Notification Received</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Speak Text - "{not_app_name} - {notification}"</pre> | ||
| + | <pre class="constraint-style">Constraints | ||
| + | |||
| + | Headphone Connection - Connected</pre> | ||
| + | |||
| + | ''' See Also ''' | ||
| + | |||
| + | * [[Trigger: Headphones Insert/Removed|Headphones Insert/Removed Trigger]] | ||
Latest revision as of 11:36, 9 January 2026
This constraint allows or prevents a macro/feature from running based on whether headphones are connected.
Options
- Connected: Constraint passes only when headphones are connected
- Disconnected: Constraint passes only when headphones are disconnected
- With/Without Mic - Optionally filter by microphone presence
Example
Example 1: Speaks notifications only when headphones are connected.
Triggers Notification Received
Actions
Speak Text - "{not_app_name} - {notification}"
Constraints Headphone Connection - Connected
See Also