Metadata-Version: 2.4
Name: waypaste
Version: 0.1.1
Summary: Clipboard image saver for Wayland/Sway
Author-email: Ivan <ivan@primaguna.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/ivanp/waypaste
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# WayPaste

Save clipboard images to disk from anywhere on Sway/Wayland.

Press **Ctrl+Alt+V** → native save dialog → file saved → notification.

## How it works

1. Checks clipboard for `image/png` (e.g. after Figma "Copy as PNG")
2. Opens a GTK file-save dialog pre-filled with a date-based filename and your last-used directory
3. Saves the file and sends a `notify-send` confirmation
4. If clipboard has no image, sends an error notification instead

## Install

**Arch / CachyOS (recommended):**

```bash
yay -S python-waypaste
```

**pip (system Python):**

```bash
pip install waypaste
```

Requires system Python with `python-gobject` already installed. Do not use `uvx` or an isolated venv.

**From source:**

```bash
bash install.sh
```

Then add to `~/.config/sway/config`:

```
bindsym Ctrl+Alt+v exec ~/.local/bin/waypaste
```

Reload Sway: **Super+Shift+C**

## Dependencies

```bash
sudo pacman -S wl-clipboard libnotify python-gobject
```

| Package | Provides |
|---------|----------|
| `wl-clipboard` | `wl-paste` — reads Wayland clipboard |
| `libnotify` | `notify-send` — desktop notifications |
| `python-gobject` | GTK3 file-save dialog |

## Default filename

`YYYY-MM-DD-HHmmss.png` — e.g. `2026-04-03-143200.png`

Last-used directory is remembered in `~/.local/share/waypaste/last-dir`.
