Skip to content

Synchronizes the clipboard across multiple X11 and wayland instances running on the same machine.

Notifications You must be signed in to change notification settings

kianmeng/clipboard-sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clipboard Sync

Synchronizes the clipboard across multiple X11 and wayland instances running on the same machine.

Example use cases:

  • Multiple displays: You run x11 in one tty for games but otherwise use gnome in wayland, switching between desktops using ctrl-alt-F*, and you want both displays to have a unified clipboard.
  • Nested wayland: You run a wayland compositor within a window. If you want to copy and paste anything from your primary desktop environment into the nested wayland window (or vice versa), you'll need clipboard-sync to synchronize the clipboards. examples:
    • you primarily use kde, but run sway in a window to consoldiate all your messenger apps into a single tiled/tabbed window.
    • you use gnome and develop extensions for gnome, so you run a nested gnome environment for testing.

Installation

If you want it installed system-wide or want the service to run automatically, use "Generic Linux." If you want to install it only for your user account and would like to manually run the command to start the sync, install with cargo.

Arch Linux

clipboard-sync is available in the Arch User Repository.

Generic Linux

Install rust: https://www.rust-lang.org/tools/install

git clone https://github.com/dnut/clipboard-sync.git
cd clipboard-sync
make
sudo make install

Uninstall with:

sudo make uninstall

Cargo

Install rust: https://www.rust-lang.org/tools/install

This will only install the executable, not the service.

cargo install clipboard-sync

Uninstall with:

cargo uninstall clipboard-sync

Usage

The typical set-and-forget approach is to enable to service:

systemctl --user enable --now clipboard-sync

If you don't want it to run constantly, only on-demand, don't use systemd. Directly call the binary as needed:

clipboard-sync

About

Synchronizes the clipboard across multiple X11 and wayland instances running on the same machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 95.1%
  • Shell 2.7%
  • Makefile 1.8%
  • Python 0.4%