MCPcopy Index your code
hub / github.com/bugaevc/wl-clipboard

github.com/bugaevc/wl-clipboard @v2.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.3.0 ↗ · + Follow
252 symbols 394 edges 32 files 1 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

wl-clipboard: Wayland clipboard utilities

This project implements two command-line Wayland clipboard utilities, wl-copy and wl-paste, that let you easily copy data between the clipboard and Unix pipes, sockets, files and so on.

# Copy a simple text message:
$ wl-copy Hello world!

# Copy the list of files in ~/Downloads:
$ ls ~/Downloads | wl-copy

# Copy an image:
$ wl-copy < ~/Pictures/photo.png

# Copy the previous command:
$ wl-copy "!!"

# Paste to a file:
$ wl-paste > clipboard.txt

# Sort clipboard contents:
$ wl-paste | sort | wl-copy

# Upload clipboard contents to a pastebin on each change:
$ wl-paste --watch nc paste.example.org 5555

Please see the wl-clipboard(1) man page for more details.

Installing

wl-clipboard is likely available in your favorite Linux or BSD distro. For building from source, see BUILDING.md.

License

wl-clipboard is free software, available under the GNU General Public License version 3 or later.

Related projects

  • wl-clipboard-x11: A wrapper to use wl-clipboard as a drop-in replacement to X11 clipboard tools.
  • wl-clipboard-rs: A Rust crate (library) for working with the Wayland clipboard which includes a reimplementation of wl-copy and wl-paste.

Core symbols most depended-on inside this repo

source_offer
called by 7
src/types/source.c
offer_destroy
called by 6
src/types/offer.c
str_has_suffix
called by 6
src/util/string.c
print_usage
called by 4
src/wl-paste.c
mime_type_is_text
called by 4
src/util/string.c
complain_about_selection_support
called by 4
src/util/misc.c
complain_about_missing_global
called by 4
src/util/misc.c
str_has_prefix
called by 3
src/util/string.c

Shape

Class 163
Function 88
Enum 1

Languages

C68%
C++32%

Modules by API surface

src/types/shell-surface.c20 symbols
src/types/device.c20 symbols
src/types/registry.h18 symbols
src/wl-paste.c17 symbols
src/wl-copy.c16 symbols
src/types/shell.c15 symbols
src/types/popup-surface.h14 symbols
src/types/registry.c13 symbols
src/types/keyboard.c11 symbols
src/util/files.c10 symbols
src/types/device-manager.h10 symbols
src/types/popup-surface.c9 symbols

For agents

$ claude mcp add wl-clipboard \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact