Metadata-Version: 2.4
Name: perch
Version: 2.0.2
Summary: Persistent, compositor-aware window geometry manager with a system-tray UI.
Project-URL: Homepage, https://github.com/milnet01/perch
Project-URL: Issues, https://github.com/milnet01/perch/issues
Project-URL: Documentation, https://github.com/milnet01/perch/tree/main/docs
Author: milnet01
License-Expression: GPL-3.0-or-later
License-File: LICENSE
Keywords: geometry,kde,kwin,layout,tray,wayland,window-manager,x11
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: X11 Applications :: Qt
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Desktop Environment :: Window Managers
Requires-Python: >=3.12
Requires-Dist: pyside6<7,>=6.8
Requires-Dist: python-xlib>=0.33
Requires-Dist: qasync<1,>=0.28
Requires-Dist: regex>=2020.11.13
Requires-Dist: sdbus<1,>=0.14.2
Requires-Dist: tomlkit<1,>=0.13
Provides-Extra: dev
Requires-Dist: mypy<3,>=1.20; extra == 'dev'
Requires-Dist: pytest-asyncio<2,>=1.3; extra == 'dev'
Requires-Dist: pytest-qt<5,>=4.5; extra == 'dev'
Requires-Dist: pytest-xvfb>=3; extra == 'dev'
Requires-Dist: pytest<10,>=8.4; extra == 'dev'
Requires-Dist: pyyaml<7,>=6.0.3; extra == 'dev'
Requires-Dist: requirements-parser<1,>=0.13.1; extra == 'dev'
Requires-Dist: ruff<0.17,>=0.16; extra == 'dev'
Requires-Dist: types-pyyaml<7,>=6.0.12; extra == 'dev'
Requires-Dist: types-regex>=2026.9.10; extra == 'dev'
Provides-Extra: sway
Requires-Dist: i3ipc<3,>=2.2.1; extra == 'sway'
Description-Content-Type: text/markdown

# Perch 🪟

> **Your windows, where you left them.** Perch quietly remembers where each of
> your windows lives — which screen, which spot, what size — and puts them back
> there every time they reopen.

Perch sits in your system tray and does one thing well: it stops you from
dragging the same windows into the same places every single day. Open your
editor and it lands on the left half of your second monitor, like it always
does. Reconnect your laptop to your desk and everything shuffles back to where
it belongs.

**Status:** v2.0.2 · Linux · free & open source (GPL-3.0). See
[`CHANGELOG.md`](CHANGELOG.md) for what's new.

---

## Download & run

Perch ships as an **AppImage** — a single file you download and run. **No
installing, no dependencies, no Python to set up.** It works on any modern Linux
desktop (Ubuntu 20.04+, Debian, Fedora, openSUSE, Arch, and more).

1. Download `Perch-2.0.2-x86_64.AppImage` from the
   [**Releases page**](https://github.com/milnet01/perch/releases/latest).
2. Make it runnable (once):
   ```bash
   chmod +x Perch-2.0.2-x86_64.AppImage
   ```
3. Run it:
   ```bash
   ./Perch-2.0.2-x86_64.AppImage
   ```

Perch appears in your system tray. Right-click the tray icon for everything —
snap presets, layouts, and settings. To start it automatically at login, use
the **General → Start at login** toggle in its settings.

### openSUSE and Fedora: install the RPM

Prefer a normal package that updates along with the rest of your system?
Perch has a build repository, covering **openSUSE Tumbleweed** and **Fedora**
from the same recipe in this repo.

**openSUSE Tumbleweed**

```bash
sudo zypper addrepo https://download.opensuse.org/repositories/home:/milnet:/perch/openSUSE_Tumbleweed/home:milnet:perch.repo
sudo zypper refresh
sudo zypper install perch
```

**Fedora**

```bash
sudo dnf config-manager addrepo --from-repofile=https://download.opensuse.org/repositories/home:/milnet:/perch/Fedora_44/home:milnet:perch.repo
sudo dnf install perch
```

Your package manager will ask you to trust the repository's signing key the
first time — that's expected. Afterwards Perch updates with everything else.

### Flatpak

Perch is also a Flatpak, as a file on the
[**Releases page**](https://github.com/milnet01/perch/releases/latest). It is
not on Flathub. Download `io.github.milnet01.Perch.flatpak`, then:

```bash
flatpak install --user io.github.milnet01.Perch.flatpak
flatpak run io.github.milnet01.Perch
```

Flatpak fetches the runtime Perch needs the first time. A Flatpak installed
from a file does not update itself: install the next release's file over it.

> **Coming soon:** a one-command install via the AUR —
> see the [roadmap](ROADMAP.md#v101--get-it-downloadable).

---

## What it does

- **Remembers everything** about each window — position, size, which monitor,
  which virtual desktop — and restores it when the window reopens.
- **Snap presets** from the tray: centre, left/right half, the four quarters,
  and "maximise on this screen".
- **Named layouts** — flip your whole screen between "coding", "media", and
  "writing" arrangements in one click.
- **Rules** — *"always open Firefox on monitor 2, maximised"* and it just
  happens.
- **Docked vs. laptop profiles** — different window positions for when your
  laptop is at your desk versus on its own.
- **Global hotkeys** for snap presets.
- **An exclusions list** so splash screens and little dialogs are left alone.
- **Export / import** your setup so it survives a reinstall or moves to a new
  machine.

## Will it work on my desktop?

Perch supports the mainstream Linux display servers through a plug-in design.

| Your desktop | Support |
|---|---|
| **KDE Plasma** (X11 or Wayland) | ✅ full |
| **Any X11 desktop** (Xfce, MATE, Cinnamon, i3, …) | ✅ full |
| GNOME (Wayland) | 🚧 stub — help wanted |
| Sway / wlroots | 🚧 stub — help wanted |
| Hyprland | 🚧 stub — help wanted |

The "stub" backends have the wiring in place but need a contributor to finish
them — adding one means implementing a single interface
([`docs/03-backend-interface.md`](docs/03-backend-interface.md)), no changes to
Perch's core.

## Windows?

Not yet — Perch is Linux-only today. A Windows edition (same idea, native
Win32 backend, fully self-contained installer) is on the
[roadmap](ROADMAP.md#windows-edition--separate-track).

---

## For developers

Perch is Python 3.12+ with PySide6 (Qt 6). To run from source:

```bash
git clone https://github.com/milnet01/perch.git
cd perch
python -m venv .venv && source .venv/bin/activate
python -m pip install -e ".[dev]"
perch --version
```

- **Full dev setup, tests, and the pre-push check:**
  [`docs/contributing-dev-setup.md`](docs/contributing-dev-setup.md).
- **Build the AppImage yourself:** [`packaging/appimage/`](packaging/appimage/README.md).
- **Design docs (how it all works):** [`docs/`](docs/).

Contributions welcome — please read [`CONTRIBUTING.md`](CONTRIBUTING.md) first.
Perch is **docs-first**: any behaviour change updates the relevant `docs/` file
in the same change.

## License

[GPL-3.0-or-later](LICENSE).
