Difference between revisions of "Greenclip"

From ArchWiki
Jump to: navigation, search
(Usage: command to clean history)
(Set same category as rofi.)
Line 1: Line 1:
 +
[[Category:Application launchers]]
 
Greenclip[https://github.com/erebe/greenclip] is a simple clipboard manager designed to be integrated with [[rofi]] and written in Haskell.
 
Greenclip[https://github.com/erebe/greenclip] is a simple clipboard manager designed to be integrated with [[rofi]] and written in Haskell.
  

Revision as of 06:47, 18 December 2017

Greenclip[1] is a simple clipboard manager designed to be integrated with rofi and written in Haskell.

Installation

Install greenclipAUR from AUR.

To integrate the daemon start-up on boot is it possibile to create a service:

/usr/lib/systemd/user/greenclip.service
[Unit]
Description=Start greenclip daemon
After=display-manager.service

[Service]
ExecStart=/usr/bin/greenclip daemon
Restart=always

[Install]
WantedBy=default.target

Enable the service to start at boot:

systemctl --user enable greenclip.service

Usage

  1. Spawn the daemon /usr/bin/greenclip daemon
  2. Show entries as a list whithin rofi using: rofi -modi "clipboard:greenclip print" -show clipboard
  3. The entry that you have selected will be in your clipboard now
  4. Configuration file is placed in ~/.config/greenclip.cfg
  5. To clear all clipboard history run greenclip clear

Configuration example

~/.config/greenclip.cfg
Config {maxHistoryLength = 250, historyPath = "~/.cache/greenclip.history", staticHistoryPath = "~/.cache/greenclip.staticHistory", usePrimarySelectionAsInput = False}