Skip to main content
net8.0

A library that allows UTF-8 access for X11's both primary selection and main clipboard.

Published
Jul 22, 2024
2y ago
Total Downloads
6.3K
6,258

Deprecated Package Version

Reason: Legacy

The package has been depreciated in favor of Medo.PTClipboard that, in addition to X11, also supports Wayland and Win32 clipboard access.

Suggested alternative:Medo.PTClipboard*

Install

dotnet add package Medo.X11Clipboard --version 1.0.0
ProductVersions
.NET
net8.0

README

Medo.X11Clipboard

X11Clipboard library is designed for applications that need to interact with the X11 clipboard system. This library provides essential functions for getting and setting UTF-8 text content for both X11's primary selection and clipboard. This makes it ideal for applications that require straightforward clipboard interactions without the overhead of more comprehensive libraries.

Features:

  • Supports both primary selection and clipboard GetText and SetText operations.
  • .NET 8 AOT support

You can find packaged library at NuGet.

Usage

To write and read X11 primary selection (aka, middle-click clipboard):

using System;
using Medo.X11;

X11Clipboard.Primary.SetText("My text.");
Console.WriteLine(X11Clipboard.Primary.GetText());

To write and read normal clipboard:

using System;
using Medo.X11;

X11Clipboard.Clipboard.SetText("My text.");
Console.WriteLine(X11Clipboard.Clipboard.GetText());

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

NuGet marks this package as deprecated and points to Medo.PTClipboard as an alternative.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.