- Rust 53.5%
- Shell 45%
- Ruby 1%
- Dockerfile 0.5%
| .forgejo | ||
| dist | ||
| Formula | ||
| src | ||
| .dummy-trigger | ||
| .dummy-trigger2 | ||
| .gitignore | ||
| .test-pipeline | ||
| .test-trigger | ||
| AGENTS.md | ||
| akclip-arm64-bin | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Containerfile | ||
| install.sh | ||
| README.md | ||
| 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
macOS / Linux — Homebrew (Recommended)
# 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