Skip to content

Linux CLI tool for managing and working with the clipboard

License

Notifications You must be signed in to change notification settings

MartinGamesCZ/Clippy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clippy

Linux CLI tool for managing clipboard.

Installation

  1. Get the latest .deb package from the releases page.
  2. Install the package using sudo dpkg -i path_to_clippy.deb.
  3. You are now ready to use Clippy.

Usage

Clippy can be used using the command clippy.

Commands

  • clippy copy - Copy the piped text to the clipboard.
  • clippy paste - Paste the clipboard content to the terminal / pipe into another process/file.
  • clippy help - Show help message (list of commands).
  • clippy history - Show the history of the clipboard.
  • clippy - Default command, action will be determined by the available pipes.

Flags

You can combine the commands with flags:

  • -h or --history - While pasting, you can use this flag to paste nth item from the history.

Pipes

You can pipe clippy to other files or processes.

Copy

For example, you can pipe output of a pwd command into clippy:

# Using copy command
pwd | clippy copy

# You can also use the command without the copy argument
pwd | clippy

This will copy the current working directory to the clipboard.

Paste

You can also pipe clippy to other commands:

# Using paste command
clippy paste | xargs ls -l

# You can also use the command without the paste argument
clippy | xargs ls -l

This will list the content of the path in the clipboard.

You can also use it as an argument for a command:

# Using paste command
ls -l $(clippy paste)

# You can also use the command without the paste argument
ls -l $(clippy)

This will list the content of the path in the clipboard.

Or you can paste it into a file:

# Using paste command
clippy paste > file.txt

# You can also use the command without the paste argument
clippy > file.txt

This will paste the content of the clipboard into the file.

Support us

This project is free and will always be. If you want to support us, you can donate to the project or give us a star on GitHub. If you want to donate, contact me.

Maintainers

License

Use this tool as you wish, for free, even commercially. Just don't claim it as your own and don't blame me for anything. If you want to support me or the project, you can donate.