Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noocsharp/wayclip
Wayland clipboard utility (mirror)
https://github.com/noocsharp/wayclip
clipboard wayland
Last synced: 3 months ago
JSON representation
Wayland clipboard utility (mirror)
- Host: GitHub
- URL: https://github.com/noocsharp/wayclip
- Owner: noocsharp
- License: isc
- Created: 2022-02-21T17:59:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T01:49:18.000Z (8 months ago)
- Last Synced: 2024-07-01T18:21:27.962Z (4 months ago)
- Topics: clipboard, wayland
- Language: C
- Homepage: https://sr.ht/~noocsharp/wayclip
- Size: 61.5 KB
- Stars: 25
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wayclip
wayclip is a pair of command-line utilities: `waycopy` and `waypaste`,
which allow access to the Wayland clipboard. Specifically, `wayclip`
is a `wlr-data-control` protocol client.wayclip distinguishes itself from other Wayland clipboard utilities
in the following ways:
- small - the whole codebase is less than 300 lines! (excluding whitespace)
- Unixy - all it does is copy and paste; other functions are for other programs
- no dynamic memory allocation## Usage
To copy data, just pipe it into `waycopy`, and optionally specify a seat and mimetype:
```
$ echo "howdy" | waycopy -s seat0 -t text/plain
```
(note that `waycopy` will fork into the background)To paste, optionally specify a seat and desired mimetype:
```
$ waypaste -s seat0 -t text/plain
howdy
$
```