clipsyboogie

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 13 Imported by: 0

README

Clipsyboogie - cli clipboard logging

clipsyboogie is a simple cli tool written in Go to capture and retrieve the current system clipboard contents.

macOS cli GitHub go.mod Go version GitHub License GitHub branch check runs

[!CAUTION] clipsyboogie has been tested on macOS only. install and uninstall are macOS-specific.

Installation

Homebrew clipsyboogie homebrew version

The easiest way to install clipsyboogie is via Homebrew:

brew install balintb/tap/clipsyboogie

If this fails, you might need to add the tap first:

brew tap balintb/tap

And retry brew install balintb/tap/clipsyboogie.

Go

To install via Go,

go install github.com/balintb/clipsyboogie@latest

Make sure you have Go environment variables set up, especially GOPATH, and your PATH with $GOPATH/bin.

LaunchAgent

To install a LaunchAgent (run in the background), use

clipsyboogie install

Configuration

Current configuration options are limited to command line flags and environment variables, notably

  • --interval or $CBG_INTERVAL: polling interval in ms. Any clipboard contents that live for a shorter period of time are not guaranteed to be captured. Minimum value has been set at 10 for performance reasons.
  • --run-at-load to enable running LaunchAgent on load. Default true.

Pull requests are welcome for a proper file-based config.

Usage

clipsyboogie [global options] command [command options]

Commands
add, a        Record clipboard content
get, g        Get latest N entries
install, i    Install LaunchAgent
uninstall, u  Uninstall LaunchAgent
listen, l     Listen (poll) for clipboard changes
help, h       Shows a list of commands or help for one command

To start in the background, clipsyboogie install creates a plist in ~/Library/LaunchAgents/com.balintb.clipsyboogie.plist, which can be loaded with launchctl load ~/Library/LaunchAgents/com.balintb.clipsyboogie.plist.

Retrieving stored clipboard content

clipsyboogie stores clipboard content in ~/.clipsyboogie/clips.db as an SQLite database. You can open it with sqlite or use clipsyboogie get [N] to retrieve the last N (default 1) entries.

Roadmap

  • Add load / unload commands to load/unload via launchctl
  • File-based configuration
  • Configurable retention period or number of items to store
  • Homebrew tap

License

MIT

Clipsyboogie Copyright @balintb

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL