Code Monkey home page Code Monkey logo

wayclip's Introduction

wayclip: an opinionated Wayland clipboard manager (for kde and sway at the moment)

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.

Features

  • text clipboard history
  • selection of history items with bemenu
  • history persistence
  • history item limit
  • history encryption

Dependencies

wayclip depends on the following in version 1:

  • bemenu

Installation

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.

From source

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

Arch Linux AUR

paru -S wayclip-manager-git
yay -S wayclip-manager-git

wayclip install // installs systemd file

Cargo

cargo install wayclip

wayclip install // installs systemd file

Config

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.

Usage

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.

TODO (not sure how much of this i will actually do)

  • add an actual dedupe
  • add support for multiple text mime-types at a time
  • add support for images
  • add support for files
  • add support for other compositors and wayland protocols (ongoing)
  • add support for other menu programs (dmenu, rofi, etc.)

wayclip's People

Contributors

joeyeamigh avatar vilhelm-ian avatar

Stargazers

Niamotullah avatar Emille Henry avatar Benjamin Liebkemann avatar Timon Schelling avatar kohane27 avatar  avatar Kirsten Laskoski avatar Karolin Varner avatar Juri Hahn avatar Wesley Moore avatar Rehan avatar Gabriel Davila avatar

Watchers

 avatar

Forkers

vilhelm-ian

wayclip's Issues

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.