{"id":48818218,"url":"https://github.com/tiamed/clipboard-sync","last_synced_at":"2026-04-14T13:01:40.870Z","repository":{"id":349963978,"uuid":"1204702175","full_name":"tiamed/clipboard-sync","owner":"tiamed","description":"Bidirectional clipboard sync between Linux (Wayland) and macOS","archived":false,"fork":false,"pushed_at":"2026-04-08T09:33:06.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-08T11:08:45.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiamed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T08:49:19.000Z","updated_at":"2026-04-08T09:32:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tiamed/clipboard-sync","commit_stats":null,"previous_names":["tiamed/clipboard-sync"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tiamed/clipboard-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiamed%2Fclipboard-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiamed%2Fclipboard-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiamed%2Fclipboard-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiamed%2Fclipboard-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiamed","download_url":"https://codeload.github.com/tiamed/clipboard-sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiamed%2Fclipboard-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31797376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-14T13:01:38.984Z","updated_at":"2026-04-14T13:01:40.863Z","avatar_url":"https://github.com/tiamed.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clipboard Sync\n\nBidirectional clipboard synchronization between Linux (Wayland) and macOS.\n\n## Features\n\n- **Text sync**: Copy text on Linux → available on macOS, and vice versa\n- **Image sync**: Copy images on Linux → available on macOS, and vice versa\n- **Hash-based detection**: Only syncs when content changes\n- **Notifications**: Optional desktop notifications on both systems\n- **Systemd integration**: Runs as a user service\n\n## Requirements\n\n### Linux\n- Wayland compositor (wl-paste, wl-copy)\n- SSH client\n- `notify-send` (libnotify)\n- `iconv`, `sha256sum` (usually pre-installed)\n\n### macOS\n- SSH server enabled\n- `pbcopy`/`pbpaste` (built-in)\n- [imagecopy](#macos-setup) helper (auto-installed)\n\n## Quick Start\n\n### Linux\n\n```bash\ncurl -sSL https://tiamed.github.io/clipboard-sync/install-linux.sh | bash\n```\n\nThen edit the config:\n```bash\nnano ~/.config/clipboard-sync/config.ini\n```\n\nStart the service:\n```bash\nsystemctl --user enable --now clipboard-sync\n```\n\n### macOS\n\n```bash\ncurl -sSL https://tiamed.github.io/clipboard-sync/install-macos.sh | bash\n```\n\n## Installation\n\n### Linux\n\n**One-liner (recommended):**\n```bash\ncurl -sSL https://tiamed.github.io/clipboard-sync/install-linux.sh | bash\n```\n\n**Install dependencies manually:**\n\nUbuntu/Debian:\n```bash\nsudo apt install wl-clipboard libnotify-bin\n```\n\nArch Linux:\n```bash\nsudo pacman -S wl-clipboard libnotify\n```\n\nFedora:\n```bash\nsudo dnf install wl-clipboard libnotify\n```\n\n**Files installed:**\n- `~/.local/bin/clipboard-sync` - Main executable\n- `~/.config/clipboard-sync/config.ini` - Configuration\n- `~/.local/state/clipboard-sync/` - State files\n- `~/.config/systemd/user/clipboard-sync.service` - Systemd service\n\n### Configuration\n\nEdit `~/.config/clipboard-sync/config.ini`:\n\n```ini\n[remote]\nuser = your_mac_username\nhost = 192.168.1.100\nimage_copy_path = /Users/your_username/scripts/imagecopy\n\n[sync]\nmin_length = 1\npoll_interval = 1\nenable_text = true\nenable_image = true\n\n[notifications]\nenabled = true\n\n[ssh]\noptions = -o BatchMode=yes -o StrictHostKeyChecking=no -o ConnectTimeout=10\n```\n\n### SSH Setup\n\nEnsure passwordless SSH works to your Mac:\n\n```bash\nssh-copy-id your_mac_username@your_mac_host\nssh your_mac_username@your_mac_host \"echo OK\"\n```\n\n### Start Service\n\n```bash\nsystemctl --user enable --now clipboard-sync\nsystemctl --user status clipboard-sync\n```\n\n## macOS Setup\n\nThe `imagecopy` helper is required for image sync. Install it with one command:\n\n```bash\ncurl -sSL https://tiamed.github.io/clipboard-sync/install-macos.sh | bash\n```\n\nThis downloads a pre-compiled binary for your architecture (Intel or Apple Silicon).\n\n**Manual installation:**\n\n```bash\nmkdir -p ~/scripts\ncurl -Lo ~/scripts/imagecopy https://github.com/tiamed/clipboard-sync/releases/latest/download/imagecopy-$(uname -m)\nchmod +x ~/scripts/imagecopy\n```\n\n**From source:**\n\n```bash\nmkdir -p ~/scripts\nswiftc macos/imagecopy.swift -o ~/scripts/imagecopy\nchmod +x ~/scripts/imagecopy\n```\n\n**Usage:**\n```bash\n~/scripts/imagecopy /path/to/image.png     # Push image to clipboard\n~/scripts/imagecopy -o /path/to/output.png # Save clipboard image to file\n```\n\n## Configuration Reference\n\n| Section | Option | Default | Description |\n|---------|--------|---------|-------------|\n| `[remote]` | `user` | (required) | macOS username |\n| `[remote]` | `host` | (required) | macOS hostname/IP |\n| `[remote]` | `image_copy_path` | (required) | Path to imagecopy helper |\n| `[sync]` | `min_length` | `1` | Minimum text length to sync |\n| `[sync]` | `poll_interval` | `1` | Seconds between polls |\n| `[sync]` | `enable_text` | `true` | Enable text sync |\n| `[sync]` | `enable_image` | `true` | Enable image sync |\n| `[notifications]` | `enabled` | `true` | Show desktop notifications |\n| `[ssh]` | `options` | (see example) | SSH connection options |\n\n## Usage\n\n### One-Shot Commands\n\nUse these to immediately sync without waiting for the next polling cycle. Ideal for keyboard shortcuts or window manager hooks.\n\n```bash\n# Push Linux clipboard to macOS (auto-detects text or image)\nclipboard-sync sync-to\n\n# Pull macOS clipboard to Linux (tries image first, falls back to text)\nclipboard-sync sync-from\n\n# Show help\nclipboard-sync --help\n```\n\n**Keyboard shortcut examples (sway/i3/hyprland):**\n```\nbindsym $mod+Shift+c exec clipboard-sync sync-to\nbindsym $mod+Shift+v exec clipboard-sync sync-from\n```\n\n### Start/Stop Service\n\n```bash\nsystemctl --user start clipboard-sync\nsystemctl --user stop clipboard-sync\nsystemctl --user restart clipboard-sync\n```\n\n### View Logs\n\n```bash\njournalctl --user -u clipboard-sync -f\n```\n\n### Continuous Daemon\n\n```bash\n# Run without arguments for continuous polling (default)\n~/.local/bin/clipboard-sync\n```\n\n## Uninstall\n\n```bash\n./scripts/uninstall.sh           # Keep config\n./scripts/uninstall.sh --purge   # Remove everything\n```\n\n## Troubleshooting\n\n### Clipboard not syncing\n\n1. Check service status:\n   ```bash\n   systemctl --user status clipboard-sync\n   ```\n\n2. Check logs:\n   ```bash\n   journalctl --user -u clipboard-sync -n 50\n   ```\n\n3. Verify SSH connection:\n   ```bash\n   ssh your_mac_user@your_mac_host \"pbpaste\"\n   ```\n\n### Images not syncing\n\n1. Verify `imagecopy` exists on Mac:\n   ```bash\n   ssh your_mac_user@your_mac_host \"ls ~/scripts/imagecopy\"\n   ```\n\n2. Test imagecopy manually on Mac:\n   ```bash\n   ssh your_mac_user@your_mac_host \"~/scripts/imagecopy /tmp/test.png\"\n   ```\n\n### SSH connection issues\n\n1. Ensure SSH key is set up:\n   ```bash\n   ssh-copy-id your_mac_user@your_mac_host\n   ```\n\n2. Test connection:\n   ```bash\n   ssh -o BatchMode=yes your_mac_user@your_mac_host \"echo OK\"\n   ```\n\n### Wayland issues\n\n1. Verify Wayland clipboard tools work:\n   ```bash\n   echo \"test\" | wl-copy\n   wl-paste\n   ```\n\n2. Check `WAYLAND_DISPLAY` environment variable:\n   ```bash\n   echo $WAYLAND_DISPLAY\n   ```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiamed%2Fclipboard-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiamed%2Fclipboard-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiamed%2Fclipboard-sync/lists"}