When Display Layout Changes

  1. The display layout changes.

Match Display Layout

AND
  1. The number of displays reported by the trigger from Display Layout Changed is greater than 1

Move Window

  1. Move the specified applicationSafarilast used window to 1

Move an app window after a display change

This Rule helps place a frequently used application on another screen when your display setup changes. It is useful for a desk routine where connecting an external monitor should move one working window to a preferred display.

When: The display layout changes. If: The event reports more than one connected display. Do: Move the selected application’s last-used window to the configured screen. The sample application is Safari and the screen value is 1; review both on your own Mac rather than assuming that number identifies the monitor you want.

Configure and try it

  1. Import with Open this Rule in Rulr and select the application in Move Window to Screen.
  2. Choose the intended screen from your connected display setup and review the last-used window selection. Open a window in that app before testing.
  3. Grant Accessibility access so Rulr can move application windows. Enable the Rule, then connect your monitor or make a display-layout change.
  4. Confirm which window moved and where it landed. Repeat after reconnecting the display, especially if you use several docks or different monitor arrangements.

Use this event-driven Rule for one window’s display placement, and Window Switcher for manually choosing an existing window. The Display Layout Changed Trigger exposes the display event; Move Window to Screen defines the movement. The Mac automation guide explains why the display-count Condition sits between them.

Requirements and limits

The display-layout Trigger and window-moving Action require Rulr Pro. The target application must have a movable window, and the selected screen must be available when the Action runs.

The Trigger covers layout changes rather than one particular monitor’s connection. A rearrangement can therefore run the Rule again whenever more than one display is present. The sample moves one selected window; it does not resize it, tile every app, or manage Spaces. For choosing among existing windows manually, use Window Switcher.

For built-in tiling and other ways to arrange windows, see the Mac window manager comparison.