Trigger: Screen Orientation
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