Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmelodie/xcreep
📎 Simple wrapper to xclip in Go
https://github.com/gmelodie/xcreep
Last synced: 25 days ago
JSON representation
📎 Simple wrapper to xclip in Go
- Host: GitHub
- URL: https://github.com/gmelodie/xcreep
- Owner: gmelodie
- License: mit
- Created: 2020-01-28T23:06:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T23:04:36.000Z (over 4 years ago)
- Last Synced: 2024-06-20T03:38:08.340Z (5 months ago)
- Language: Go
- Homepage:
- Size: 1.47 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xcreep
`xcreep` is an easy wrapper for [`xclip`](https://github.com/astrand/xclip) made in Go.
## Installation
Simply```
go get github.com/gmelodie/xcreep
```## Usage
1. Copy the contents of a file, say `example.txt`, to the clipboard:
```
./xcreep example.txt
```
![xcreep copy](xcreep-usage-copy.gif)2. Paste it wherever you want with CTRL+V or Right-click > Paste.
![xcreep paste](xcreep-usage-paste.gif)
If you are on a different directory, just use either the absolute or the relative paths to that file:
```
./xcreep /home/root/flag.txt # absolute path
./xcreep ../root/flag.txt # relative path (if you are in /home/some-dir)
```## Why?
Because I was tired of (1) having to look up how to copy to clipboard with xclip and
(2) not being able to `cat file.txt > xclip` or `cat file.txt | xclip` or simply `xclip file.txt`> But you can just make a simple script to wrap xclip
[I know](https://gist.github.com/gmelodie/0830c03eee0addb44073cc93dc02dd94), but it was fun coding it in Go though