https://github.com/cablehead/x-macos-pasteboard
monitor your macos clipboard from the command line
https://github.com/cablehead/x-macos-pasteboard
Last synced: about 1 year ago
JSON representation
monitor your macos clipboard from the command line
- Host: GitHub
- URL: https://github.com/cablehead/x-macos-pasteboard
- Owner: cablehead
- Created: 2024-10-08T16:34:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T19:11:55.000Z (over 1 year ago)
- Last Synced: 2025-03-25T05:05:50.505Z (about 1 year ago)
- Language: Swift
- Homepage: https://github.com/cablehead/xs/tree/main/examples/x-macos-pasteboard
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A micro-cli to watch your macOS pasteboard and emit the raw contents to stdout
as jsonl.
```bash
$ /opt/homebrew/bin/x-macos-pasteboard
{"types":{"public.utf8-plain-text":"L29wdC9ob21lYnJldy9iaW4veC1tYWNvcy1wYXN0ZWJvYXJk"},"change":9445,"source":"com.mitchellh.ghostty"}
{"change":9446,"types":{"public.utf8-plain-text":"JCAvb3B0L2hvbWVicmV3L2Jpbi94LW1hY29zLXBhc3RlYm9hcmQKeyJ0eXBlcyI6eyJwdWJsaWMudXRmOC1wbGFpbi10ZXh0IjoiTDI5d2RDOW9iMjFsWW5KbGR5OWlhVzR2ZUMxdFlXTnZjeTF3WVhOMFpXSnZZWEprIn0sImNoYW5nZSI6OTQ0NSwic291cmNlIjoiY29tLm1pdGNoZWxsaC5naG9zdHR5In0="},"source":"com.mitchellh.ghostty"}
```
Intended to be combined with [`xs`](https://github.com/cablehead/xs) as a [generator](https://github.com/cablehead/xs/tree/main/examples/x-macos-pasteboard).
## Install
```bash
brew install cablehead/tap/x-macos-pasteboard
```
## Release
```
swiftc main.swift -O -o x-macos-pasteboard
gh release create v0.8 ./x-macos-pasteboard \
--title "v0.8 - First Binary Release" \
--notes "This release contains the first precompiled macOS binary of x-macos-pasteboard."
```