wayclip

Wayland clipboard utility
git clone git://git.nihaljere.xyz/wayclip
Log | Files | Refs | README | LICENSE

README.md (787B)


      1 # wayclip
      2 
      3 wayclip is a pair of command-line utilities: `waycopy` and `waypaste`,
      4 which allow access to the Wayland clipboard. Specifically, `wayclip`
      5 is a `wlr-data-control` protocol client.
      6 
      7 wayclip distinguishes itself from other Wayland clipboard utilities
      8 in the following ways:
      9 - small - the whole codebase is less than 300 lines! (excluding whitespace)
     10 - Unixy - all it does is copy and paste; other functions are for other programs
     11 - no dynamic memory allocation
     12 
     13 ## Usage
     14 
     15 To copy data, just pipe it into `waycopy`, and optionally specify a seat and mimetype:
     16 
     17 ```
     18 $ echo "howdy" | waycopy -s seat0 -t text/plain
     19 ```
     20 (note that `waycopy` will fork into the background)
     21 
     22 To paste, optionally specify a seat and desired mimetype:
     23 ```
     24 $ waypaste -s seat0 -t text/plain
     25 howdy
     26 $
     27 ```