No description
  • Rust 53.5%
  • Shell 45%
  • Ruby 1%
  • Dockerfile 0.5%
Find a file
2026-07-08 05:28:35 +00:00
.forgejo fix(ci): use dynamic repo name in session title 2026-07-08 05:26:51 +00:00
dist
Formula
src
.dummy-trigger
.dummy-trigger2
.gitignore
.test-pipeline
.test-trigger
AGENTS.md refactor: replace hardcoded URLs with environment variables 2026-07-07 20:43:24 +00:00
akclip-arm64-bin
Cargo.lock chore: bump version to v0.1.35 2026-07-08 05:28:35 +00:00
Cargo.toml chore: bump version to v0.1.35 2026-07-08 05:28:35 +00:00
Containerfile
install.sh
README.md test: trigger simplified script 2026-07-07 16:45:53 +00:00
storage.conf

AKClip

A lightweight, cross-platform command-line tool for reading from and writing to the system clipboard.

Description

AKClip copies text to and from the clipboard from the terminal. Pass a command and get its output on the clipboard, or run with no arguments to read what's currently there.

Supports macOS, Linux, and Windows.

Installation

# Add the Forgejo tap
brew tap akinus/forgejo https://forge.akinus21.com/akinus/homebrew-akinus21-forge.git

# Install
brew install akinus/forgejo/akclip

# Upgrade
brew update && brew upgrade akinus/forgejo/akclip

Linux — Homebrew on Forgejo

brew tap akinus/forgejo https://forge.akinus21.com/akinus/homebrew-akinus21-forge.git
brew install akinus/forgejo/akclip

From Source

cargo build --release
./target/release/akclip --help

Windows

Download a release binary from the Releases page and add it to your PATH.

Usage

Read clipboard

akclip
# outputs the current clipboard contents

Write to clipboard

Pass a command — its stdout is captured and written to the clipboard:

# Copy file contents
akclip cat file.txt

# Copy a string
akclip echo "Hello, World!"

# Pipe output
ps aux | akclip

# Complex shell expressions work too
akclip "echo first && echo second"
akclip "ps aux | grep akclip"

AKClip joins all arguments with a space and runs them through the shell, so pipes, redirects, and other shell features work as expected.

Platform Details

Platform Tool used
macOS pbcopy / pbpaste
Linux (X11) xclip
Linux (Wayland) wl-copy
Windows PowerShell

Configuration

Override the clipboard commands with environment variables:

Variable Default Description
AKCLIP_GET_CMD platform-specific Command to read clipboard
AKCLIP_SET_CMD platform-specific Command to write clipboard

Example:

AKCLIP_GET_CMD="xclip -selection clipboard -o" \
AKCLIP_SET_CMD="xclip -selection clipboard" \
  akclip

Development

cargo build --release
cargo test
cargo fmt
cargo clippy -- -D warnings

License

MIT

devops trigger

devops trigger 2

trigger pipeline

Devops verify test Devops test after fix Verify test 2 Verify test 3 Verify test 4 Verify test 5 test test7 test8 trigger build test report script trigger trigger