imgurbot12 / wclipd

A Customizable Clipboard Manager for Wayland

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wclipd

A Customizable Clipboard Manager for Wayland

Features

  • Blazingly Fast πŸ”₯
  • Simple and Easy to Use
  • Unifies Clipboard Tooling into One Binary
  • Manage and Categorize Your Snippets
  • Multiple and Customizable Storage Options
  • Exact Control on How Long your Copies last

Why

After looking at existing clipboard management tools for wayland, NONE of the existing solutions have all the features I wanted in one easy-to-use tool.

Second, Having an all-in-one daemon avoids many of the weird hacks required by other solutions due to the nature of wayland and its protocols.

Due to waylands design, in order for a copy snippet to remain available, a process that includes that snippet must always be running. Tools like wl-clipboard use dirty hacks to spawn a fork of themselves to sit and wait in the background so you can paste snippets copied from the terminal. Using a unified daemon avoids these problems.

Installation

$ make install

Usage

View all available options and commands via the built-in help

$ wclipd --help

Ensure the Daemon is Running in the Background. Easy to Include in Your Sway Config For Example.

$ wclipd daemon

Copy and Paste via Terminal with Ease

$ wclipd copy 'hello world!'
$ wclipd paste

View a History of Available Snippets. Previews are listed from oldest to most-recent copy with timestamps.

$ wclipd copy 'hello'
$ wclipd copy 'world!'
$ wclipd show
β”Œβ”€β”€β”€β”¬β”€ default ─┬────┐
β”‚ 0 β”‚ hello     β”‚ 6s β”‚
β”‚ 1 β”‚ world!    β”‚ 1s β”‚
β””β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”˜

Paste Older Copy Snippets using their Index

$ wclipd paste 0
hello

Configuration

Customize Wclipd Storage and Behavior using the available CLI flags or via its configuration file.

Advanced Usage

Copy/Paste Images

$ cat <your-image.jpg> | wclipd copy
$ wclipd paste | feh -

Re-Copy an Old Entry to Active Clipboard

$ wclipd re-copy 0
$ wclipd p
hello

Delete an Entry

$ wclipd delete 0
$ wclipd s
β”Œβ”€β”€β”€β”¬β”€ default ─┬────┐
β”‚ 1 β”‚ world!    β”‚ 5s β”‚
β””β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”˜

Categorize Your Entries into Groups On Input

$ wclipd copp ':)' --group smiles
$ wclipd s smiles
β”Œβ”€β”€β”€β”¬β”€ smiles ─┬────┐
β”‚ 0 β”‚ :)       β”‚ 3s β”‚
β””β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”˜
$ wclipd p -g smiles
:)

View Existing Groups

$ wclipd list-groups
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ smiles  β”‚ 57s     β”‚
β”‚ default β”‚ 41s     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

About

A Customizable Clipboard Manager for Wayland

License:MIT License


Languages

Language:Rust 99.0%Language:Makefile 0.9%Language:Shell 0.1%