greenclip: Simple clipboard manager to be integrated with rofi

[ bsd3, linux-desktop, program ] [ Propose Tags ]

Simple clipboard manager to be integrated with rofi - Please see README.md


[Skip to Readme]
Versions 1.3.0, 2.0.0, 2.0.1, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.2.0
Dependencies base (==4.*), binary, bytestring, directory, exceptions, hashable, microlens, microlens-mtl, protolude, text, unix, vector, wordexp, X11 (>=1.6) [details]
License BSD-3-Clause
Copyright 2016 Erèbe
Author Erèbe - Romain GERARD
Maintainer romain.gerard@erebe.eu
Category Linux Desktop
Home page https://github.com/erebe/greenclip#readme
Uploaded by erebe at Tue Sep 4 07:46:00 UTC 2018
Distributions NixOS:3.2.0
Executables greenclip
Downloads 787 total (29 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2018-09-04 [all 3 reports]
Hackage Matrix CI

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for greenclip-3.2.0

[back to package description]
<p align="center"> <img src="https://github.com/erebe/greenclip/raw/master/logo.png" alt="logo"/> </p>

Description

Recyle your clipboard selections with greenclip and don't waste your time anymore to reselect things other and other.

Purpose: Keeps track of your history of selections to quickly switch between them

Demo: <a href="https://www.youtube.com/watch?v=Utk-9Gy8H3w">Video Link</a> <br/> <a href="https://www.youtube.com/watch?v=4IycORAdW9M">Video made by @gotbletu</a>

Features:

  • Integrated with rofi
  • Permanently set some selections to added at the end (set staticHistoryPath = your/file/with/static/entries in the config file)
  • Merge X Primary selection with clipboard selection (set usePrimarySelectionAsInput = True in the config file)
  • Blacklist some applications (see I want to blacklist some applications ! in the FAQ section)
  • Copy small images

Installation

  1. It's a static binary so drop it anywhere in your $PATH env

wget https://github.com/erebe/greenclip/releases/download/3.0/greenclip

Alternatively if you are using Archlinux you can install the package from AUR

pacman -S rofi-greenclip

PS: If you want, you can add a permanent list of selections to be added to your current history. Go see the config file

Usage

Greenclip is intended to be used with rofi

  1. Spawn the daemon greenclip daemon
  2. When ever you need to get your selections history rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
  3. The entry that you have selected will be in your clipboard now
  4. Configuration file can be found in .config/greenclip.cfg

Migrating from 2.x version to 3.x one

  1. Kill all greenclip process already running
  2. Delete your old config file and old cache file (in ~/.cache/greenclip*)
  3. Start the new version of greenclip

Building the project

  1. Get stack for Haskell
  2. stack init && stack install

or you can look at the .travis.yml file

FAQ

Q. Greenclip does not copy selection !

A. Greenclip cannot run alongside other clipboard manager. If you have already one activated (there is one by default in KDE), you have first to disable it before trying to run greenclip


Q. I cannot paste images !

A. You can only keep in your history small images (~ <500 kb). I disabled the support for bigger images as it will turn your CPU into a heater for winter.


Q. I want to blacklist some applications !

A. There is in your config file a section for blacklisting applications. You can run greenclip daemon in a terminal to find what is the name of the application who has the current selection. Be aware that a lot of application does not name their clipboard process/window, so it will be empty most of the time. Be aware also, that if you use an electron application (like slack i.e) you will get a generic name like "Chromium clipboard"


Q. I want to paste selection directly after selecting them !

A. This is not possible as when you invoke rofi, you lose focus of your current window and there is no way to find it back (from greenclip point of view) Nonetheless, you can emulate the feature with xdotool rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' ; sleep 0.5; xdotool type (xclip -o -selection clipboard)


Q. I want to thank you for greenclip !

A. Give a star to this repository