Crates.io | wayclip |
lib.rs | wayclip |
version | 0.4.1 |
source | src |
created_at | 2023-05-14 04:49:42.514722 |
updated_at | 2023-11-19 19:03:55.618593 |
description | An opinionated Wayland clipboard manager |
homepage | https://github.com/JoeyEamigh/wayclip |
repository | https://github.com/JoeyEamigh/wayclip.git |
max_upload_size | |
id | 864075 |
size | 96,975 |
wayclip is a clipboard manager for Wayland compositors. It is written in Rust and monitors the clipboard by interfacing with zwlr_data_control_manager_v1. this means it works on KWin and Sway for the moment.
wayclip depends on the following in version 1:
wayclip needs access to the input
user group to paste since the wayland virtual keyboard protocol has spotty support (and i use kde).
to add your user to the input group run:
sudo gpasswd -a $USER input
then log out and back in, or reboot.
git clone https://github.com/JoeyEamigh/wayclip.git
cd wayclip
cargo build --release
./install.sh // installs to /usr/local/bin and requires sudo
wayclip install // installs systemd file
paru -S wayclip-manager-git
yay -S wayclip-manager-git
wayclip install // installs systemd file
cargo install wayclip
wayclip install // installs systemd file
the config file for wayclip will be created after first run and lives at ~/.config/wayclip/config.toml
. most of the options work, but some are works in progress.
wayclip is a daemon that monitors the clipboard. when you run wayclip install
, it installs a user systemd file which can be enabled with systemctl --user enable wayclip.service
and started with systemctl --user start wayclip.service
.
since wayland has no working hotkeys system, you should use your compositor's hotkey system to start wayclip. for example, in kde 5.27, open the shortcuts setting panel, and click add command
. type wayclip toggle
in the prompt box, then bind it to your preferred shortcut.