mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
65 lines
894 B
Markdown
65 lines
894 B
Markdown
piknik
|
|
======
|
|
|
|
Copy/paste anything over the network.
|
|
|
|
## docker-compose.yml
|
|
|
|
```yaml
|
|
piknik:
|
|
image: vimagick/piknik
|
|
ports:
|
|
- "8075:8075"
|
|
volumes:
|
|
- ./piknik.toml:/etc/piknik.toml
|
|
restart: always
|
|
```
|
|
|
|
## Server Setup
|
|
|
|
```bash
|
|
$ touch piknik.toml
|
|
$ docker-compose run --rm piknik -genkeys > piknik.toml
|
|
$ vim piknik.toml
|
|
$ docker-compose up -d
|
|
```
|
|
|
|
> `piknik.toml` contains server/client settings.
|
|
|
|
## Client Setup
|
|
|
|
```bash
|
|
# ~/.bashrc
|
|
|
|
# pkc : read the content to copy to the clipboard from STDIN
|
|
alias pkc='piknik -copy'
|
|
|
|
# pkp : paste the clipboard content
|
|
alias pkp='piknik -paste'
|
|
|
|
# pkm : move the clipboard content
|
|
alias pkm='piknik -move'
|
|
|
|
# pkz : delete the clipboard content
|
|
alias pkz='piknik -copy < /dev/null'
|
|
```
|
|
|
|
```bash
|
|
$ vim ~/.piknik.toml
|
|
|
|
$ source ~/.bashrc
|
|
|
|
$ pkc
|
|
hello world
|
|
^D
|
|
|
|
$ pkp
|
|
hello world
|
|
|
|
$ pkm
|
|
hello world
|
|
|
|
$ pkm
|
|
The clipboard might be empty
|
|
```
|