Difference between revisions of "Trigger: Screen Orientation"
m |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <pre | + | <pre class="header-style">This trigger will fire when the screen switches to portrait or landscape orientation. It monitors device rotation changes to detect when the display orientation changes.</pre> |
| − | This trigger will fire when the screen switches to portrait or landscape orientation. | ||
| − | </pre> | ||
| − | ''' | + | ''' Options ''' |
| − | + | * '''Portrait''' - The trigger fires when the screen rotates to portrait orientation (0 or 180 degrees) | |
| − | + | * '''Landscape''' - The trigger fires when the screen rotates to landscape orientation (90 or 270 degrees) | |
| + | ''' Examples ''' | ||
| − | + | '''Example 1: Auto-brightness for video''' | |
| − | |||
| − | |||
| + | Increase brightness when switching to landscape for video viewing: | ||
| − | < | + | <pre class="trigger-style">Triggers |
| − | |||
| − | |||
| + | Screen Orientation: Landscape</pre> | ||
| + | <pre class="action-style">Actions | ||
| − | </pre | + | Set Brightness: 100% |
| − | <pre | + | Media Volume: 80%</pre> |
| − | + | <pre class="constraint-style">Constraints | |
| + | Application Running: YouTube, Netflix</pre> | ||
| − | </pre>< | + | '''Example 2: Restore settings on portrait''' |
| + | |||
| + | Restore normal brightness when returning to portrait: | ||
| + | |||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Screen Orientation: Portrait</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Set Brightness: Auto | ||
| + | Media Volume: 50%</pre> | ||
| + | |||
| + | '''Example 3: Gaming mode''' | ||
| + | |||
| + | Enable gaming mode when phone is held in landscape: | ||
| + | |||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Screen Orientation: Landscape</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Do Not Disturb: Enable | ||
| + | Set Variable: [gaming_mode] = true</pre> | ||
| + | <pre class="constraint-style">Constraints | ||
| + | |||
| + | Application Running: (Select game apps)</pre> | ||
| + | |||
| + | ''' Notes ''' | ||
| + | |||
| + | * The trigger polls the screen orientation approximately every 1.5 seconds to detect changes | ||
| + | * Portrait orientation includes both normal portrait (0 degrees) and reverse portrait (180 degrees) | ||
| + | * Landscape orientation includes both normal landscape (90 degrees) and reverse landscape (270 degrees) | ||
| + | * Auto-rotate must be enabled on the device for the screen to actually rotate | ||
| + | * The trigger tracks orientation changes globally and fires for all macros using this trigger type | ||
| + | * Resource optimization is applied so only one background polling loop runs regardless of how many macros use this trigger | ||
| + | |||
| + | ''' See Also ''' | ||
| + | |||
| + | * [[Constraint:_Device_Orientation|Device Orientation Constraint]] | ||
Latest revision as of 21:46, 6 January 2026
This trigger will fire when the screen switches to portrait or landscape orientation. It monitors device rotation changes to detect when the display orientation changes.
Options
- Portrait - The trigger fires when the screen rotates to portrait orientation (0 or 180 degrees)
- Landscape - The trigger fires when the screen rotates to landscape orientation (90 or 270 degrees)
Examples
Example 1: Auto-brightness for video
Increase brightness when switching to landscape for video viewing:
Triggers Screen Orientation: Landscape
Actions Set Brightness: 100% Media Volume: 80%
Constraints Application Running: YouTube, Netflix
Example 2: Restore settings on portrait
Restore normal brightness when returning to portrait:
Triggers Screen Orientation: Portrait
Actions Set Brightness: Auto Media Volume: 50%
Example 3: Gaming mode
Enable gaming mode when phone is held in landscape:
Triggers Screen Orientation: Landscape
Actions Do Not Disturb: Enable Set Variable: [gaming_mode] = true
Constraints Application Running: (Select game apps)
Notes
- The trigger polls the screen orientation approximately every 1.5 seconds to detect changes
- Portrait orientation includes both normal portrait (0 degrees) and reverse portrait (180 degrees)
- Landscape orientation includes both normal landscape (90 degrees) and reverse landscape (270 degrees)
- Auto-rotate must be enabled on the device for the screen to actually rotate
- The trigger tracks orientation changes globally and fires for all macros using this trigger type
- Resource optimization is applied so only one background polling loop runs regardless of how many macros use this trigger
See Also