~/swaydesk/components/displays

← All components

Displays

Displays

Displays
Two monitors on the map, with the selected one's settings
After Apply: keep the new settings, or go back to the previous ones on its own when the countdown ends
After Apply: keep the new settings, or go back to the previous ones on its own when the countdown ends

Your screens on a map, to drag around, with each one’s resolution, refresh rate, scale and rotation, and whether it’s on. A change undoes itself after 15 seconds unless you keep it. Each set of monitors keeps its own layout, applied when you plug or unplug a screen, and the laptop screen turns off with the lid closed and an external monitor on. The key turns off only these automatic profiles; the app stays.

  • Drag the screens on the map to arrange them; their edges snap together.
  • For each screen: On, Resolution, Refresh rate, Scale and Rotation, flipped modes included.
  • Fractional scale from 0.5 to 4 in 0.05 steps, with the Effective size it gives.
  • Identify shows each screen’s name on that screen.
  • Apply asks Keep these display settings? with a 15-second countdown; with no answer, it goes back.
  • Keep saves the layout for that set of monitors, recognized by make, model and serial, not port.
  • A background service applies the saved layout when you plug or unplug a screen, or Sway reloads.
  • Closing the lid with an external screen on turns the laptop screen off; opening it applies the layout again.
  • It won’t turn every screen off: At least one screen must stay on.
  • A layout left unanswered, because the app was killed or the session ended, is undone at login, when a screen is plugged or unplugged and on a Sway reload.

It’s also in Settings, as the Displays panel: the same page, without another window.

Rust + GTK 4 · source · More in the guide · turn off: [enabled] displays = false

Install it alone

Only this component, without the full session. First add the Swaydesk repository, as on the page Install.

Debian 13

sudo apt install swaydesk-displays

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-displays

Arch Linux

sudo pacman -Syu swaydesk-displays

Start it on plain Sway

In ~/.config/sway/config:

include /usr/share/swaydesk/sway/config.d/50-swaydesk-displays.conf

The daemon applies the saved layout when screens change, and closing or opening the lid applies it again.

It runs as a systemd user unit, restarted if it crashes, and does nothing inside the Swaydesk session. Put the include after your config's set $mod. Without a systemd user session, use the exec line in the file's last comment instead.

Shortcuts

In the app grid

Those of the Swaydesk profile, the default. The other profiles are in Shortcuts.