Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 853 Bytes

kclip.md

File metadata and controls

33 lines (23 loc) · 853 Bytes

xclip, but for KDE's klipper

Requirements

  • python3
  • klipper
  • python-dbus

Installation

Install the requirements, if not already met.

Clone the repo & add it to the PATH, or download the file, put it in a directory on the PATH (such as /usr/local/bin, or ~/.local/bin) and mark it executable.

Usage

The script aims to work in the same way as xclip

Help page:

usage: kclip [-h] [-i] [-o] [-r] [files ...]

xclip, but for KDE's klipper

positional arguments:
  files           files to read from (uses stdin if not specified, only in --in mode)

options:
  -h, --help      show this help message and exit
  -i, --in        set clipboard contents from stdin or files (default)
  -o, --out       read clipboard contents to stdout
  -r, --rmlastnl  remove last newline character if present