Ants Projects Hub
← All projects

Perch

Remembers every window's size and spot, with snap layouts.

LiveLNXLatest: v2.0.2 ·

Also as a Flatpak: Linux

How to install
  • Linux: Make the file runnable: right-click it, open Properties, and allow it to run as a program, or run chmod +x Perch-2.0.2-x86_64.AppImage. Then double-click it.

Perch is free and open source. Donations pay for the time it takes to fix bugs, add features and keep it working as computers change. If it's useful to you, any amount helps.

Read what the video showsHide the description

A silent 31-second tour of Perch, using made-up windows and settings. It opens on Perch's tray menu, listing Layouts, Snap focused window, Pause Perch, Reapply rules now, Configure Perch and more. The Preferences window then opens on its General page. The Windows page lists the open windows Perch is tracking, with each one's app, title, screen, size and position. A new "Team chat" window appears in the list, then moves to the right half of the laptop screen, and its row updates to the new position. The Rules page shows five rules, such as "Browser fills the big screen" and "Terminal on the left", each with the window it matches and where that window goes. The Layouts page shows a "coding" layout that puts the editor on the left and the terminal on the right. The Profiles page shows a "docked" profile tied to a two-screen setup. The Hotkeys page shows keyboard shortcuts for two saved window positions. The video then fades to black.

Perch's right-click tray menu. Its greyed-out first line shows the active profile and layout, "Perch — docked / coding". Below are Layouts, Snap focused window, a Pause Perch checkbox, Reapply rules now, Configure Perch, Open config folder, Donate, Report an issue, About Perch and Quit Perch. The Snap focused window submenu is open beside it, listing Maximize on this monitor, left and right halves, the four quarters, Centre (keep size), Centre (60%) and a custom preset called "Reading column".
Perch's settings window on its Layouts page. A layout named "coding" is selected, described as "Editor left, browser right", and has two entries: the code editor takes 60% of the primary screen's width on the left, and Firefox the remaining 40% on the right.Perch's Rules page, noting that rules are checked from top to bottom, the first match wins, and a row can be dragged to change the order. A table lists five example rules, each with the window it matches and where it goes: the browser fills the big screen, the terminal goes on the left, chat goes on the laptop screen, the editor takes a set size when docked, and small settings dialogs are centred.Perch's General settings page. Checkboxes to start Perch at login and to restore each window's remembered position when it reopens are ticked; showing a notification on restore is not. Below are a theme choice, set to light, and a button to run the setup wizard again. A sidebar on the left lists the other pages: Windows, Rules, Layouts, Profiles, Hotkeys, Exclusions and Import / Export.

Perch stops you dragging the same windows into the same places every single day.

It sits in your system tray and quietly remembers where each window lives — which screen, which spot, what size, which virtual desktop — and puts it back there when the window reopens. Open your editor and it lands on the left half of your second monitor, the way it always does. Plug your laptop into your desk and Perch switches to your desk setup.

What it does

  • Remembers every window — position, size, monitor and virtual desktop — and restores it on reopen.
  • Snap presets from the tray: left or right half, the four quarters, centre, and maximise on this screen. Add your own, and give any preset a global hotkey.
  • Named layouts — flip the whole screen between your "coding", "media" and "writing" arrangements in one click.
  • Rules — always open Firefox on monitor 2, maximised, and it just happens. A rule puts the window on the monitor it names, in the right spot, and the window stays put when its title changes. Pixel positions in a rule count from that monitor's own edge, so a rule written for a second monitor in an earlier release may need its numbers adjusted.
  • Docked and laptop profiles, so windows land differently at your desk than they do on the train.
  • An exclusions list — name a splash screen or a small dialog, and Perch leaves it alone.
  • Pause Perch from the tray, and nothing moves on its own until you turn it back on.
  • Tidies up after itself — apps you haven't opened in 90 days are forgotten.
  • Export and import, so your setup survives a reinstall or moves to a new machine.

Using it

Perch ships as a single AppImage file. There is nothing to install, no dependencies to chase and no Python to set up: download it, make it executable, run it. It also comes as a Flatpak, on the same download list. On openSUSE Tumbleweed and Fedora you can install it from a package repository instead, and it updates with the rest of your system.

The first time it runs, a short setup guide explains that there is nothing you have to configure. Then it sits in your tray. Right-click the icon for snap presets, layouts and settings. If your desktop hides tray icons, run perch --settings to open the settings window. A toggle in the settings starts Perch at login, and you can pick a light or dark look.

Will it work on your desktop?

Perch talks to your display server through a plug-in backend, and two of them are finished:

Your desktop Support
KDE Plasma (X11 or Wayland) Full
Any X11 desktop — Xfce, MATE, Cinnamon, i3 Full
GNOME on Wayland Not yet
Sway, wlroots, Hyprland Not yet

The unfinished ones already have a basic backend. Each needs someone to finish it, and none needs changes to Perch's core.

Where it stands

Stable, and still being improved. Recent releases make sure windows go back where you left them:

  • Menus and dialogs are left alone: tray menus no longer open far from the click, and dialogs no longer open at title-bar size.
  • Quit always quits: Perch no longer keeps running invisibly, or hangs, after you quit or log out.
  • A password window no longer shrinks its app. Some apps lock by hiding their main window behind a small password window, and used to reopen tiny afterwards. Perch now leaves windows that cannot be resized alone.
  • A reopened window goes back where you left it, reliably, on Plasma Wayland.
  • Perch starts again after it crashes or is killed, and stays connected when KWin reloads its settings.
  • A KDE runtime update no longer breaks the Flatpak.

Linux only for now; a Windows edition is on the roadmap as a separate track. Flathub and AUR packages are planned. Free and open source under the GPL-3.0.

Theme: Quit quits, and locked apps come back full size.

Fixed

  • Quitting no longer leaves Perch hanging (PERC-0100) A Quit or logout could hang if a window event was still being handled, which happens most on Python 3.14. Perch now finishes every background task before it exits. The ten-second exit backstop from 2.0.1 stays.
  • A password window no longer shrinks its app's main window (PERC-0101) An app that locks by hiding its main window behind a fixed-size password window used to reopen tiny: Perch saved the password window's size as the app's size. Perch now leaves windows that cannot be resized alone, and neither moves them nor remembers them.

Full changelog · 5 earlier releases →