Code Monkey home page Code Monkey logo

shared-clip's Introduction

Shared Clip

This tool aim to help with usage of the clipboard when using virtual desktops (such as Xephyr) It was created to allows host and virtual guest display to share the virtually same clipboard. This is not really a shared clipboard as the implementation is heavily using copy of data from one clipboard to another. But in this case, the usage of Rust helps a lot as it really helps to handle some concurrency pitfalls.

How it works

Shared-clip will list all started virtual display at startup and then watch for each all events emitted by the clipboard using clipnotify when an event is emitted on a display, it will be forward to each other display which will sync their state with the first one.

Getting Started

Requirements

Make sure to have Rust toolchain installed (see: documentation) Shared-clip also rely on clipnotify and xclip tools that should be available for most distros through package manager

Install from source

In order to compile shared-clip firstly run this command:

$ cargo build --release

then you can copy the result binary in your path (you should find it at <shared_clip_source_dir>/target/release/shared-clip)

Run shared clip

Run shared-clip in foreground mode seeing all its logs:

$ shared-clip

Or run it in background (as a startup script or else)

$ shared-clip > /dev/null 2>&1 &

shared-clip's People

Contributors

tony-proum avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.