Difference between revisions of "Constraint: Headphone Connection"

m
 
(2 intermediate revisions by 2 users not shown)
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 headphones are connected.</pre>
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
 
This constraint can be used to allow a trigger to fire only when the headphones are connected/not connected.
+
''' Options '''
</pre>
+
 
 +
* '''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