Greenclip
Jump to navigation
Jump to search
Greenclip is a simple clipboard manager designed to be integrated with rofi and written in Haskell.
Installation
Install rofi-greenclipAUR from AUR.
Create a service to run the greenclip
daemon on start-up:
/usr/lib/systemd/user/greenclip.service
[Unit] Description=Start greenclip daemon After=display-manager.service [Service] ExecStart=/usr/bin/greenclip daemon Restart=always RestartSec=5 [Install] WantedBy=default.target
Enable the service to start at boot:
systemctl --user enable greenclip.service
Usage
- Spawn the daemon with
/usr/bin/greenclip daemon
or start/enable the servicesystemctl --user start greenclip.service
- Show entries as a list whithin rofi using:
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
- The entry that you have selected will be in your clipboard now
- Configuration file is placed in
~/.config/greenclip.cfg
- To clear all clipboard history run
greenclip clear
Configuration example
~/.config/greenclip.cfg
Config { maxHistoryLength = 250, historyPath = "~/.cache/greenclip.history", staticHistoryPath = "~/.cache/greenclip.staticHistory", imageCachePath = "/tmp/", usePrimarySelectionAsInput = False, blacklistedApps = [], trimSpaceFromSelection = True }