HUB
Sign inSign up
piknik logo

vimagick/piknik

By vimagick

•Updated over 5 years ago

Copy/paste anything over the network.

Image
2

50K+

vimagick/piknik repository overview

⁠piknik

Copy/paste anything over the network.

⁠docker-compose.yml

piknik:
  image: vimagick/piknik
  ports:
    - "8075:8075"
  volumes:
    - ./data:/etc/piknik
  restart: unless-stopped

⁠Server Setup

$ mkdir -p data
$ touch data/piknik.toml
$ docker-compose run --rm piknik -genkeys > data/piknik.toml
$ vim data/piknik.toml
$ docker-compose up -d

piknik.toml contains server/client settings.

⁠Client Setup

# ~/.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' 
$ vim ~/.piknik.toml

$ source ~/.bashrc

$ pkc
hello world  
^D

$ pkp
hello world

$ pkm
hello world

$ pkm
The clipboard might be empty 

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

over 5 years ago

docker pull vimagick/piknik