No description
This repository has been archived on 2022-01-15. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Stefan Tatschner 5296e527f8
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Update README
2022-01-15 10:27:28 +01:00
oscclip Remove unneeded shebang 2022-01-15 09:59:47 +01:00
.gitignore Initial commit 2021-10-24 15:20:53 +02:00
.woodpecker.yml Add static checks via ci 2022-01-15 09:46:15 +01:00
LICENSE Initial commit 2021-10-24 15:20:53 +02:00
poetry.lock Fix formatting 2022-01-15 09:49:39 +01:00
pyproject.toml Make it mypy ready 2022-01-15 09:57:46 +01:00
README.md Update README 2022-01-15 10:27:28 +01:00

oscclip

oscclip is a little, zero dependency python utility which utilizes the system clipboard via OSC52 escape sequences. Using these sequences, the system clipboard is accessible via SSH as well. Terminal multiplexers, such as tmux and screen are supported.

Examples

Setting the clipboard

$ echo "Foo" | osc-copy

Setting the clipboard and bypass terminal multiplexers

$ echo "Foo" | osc-copy --bypass

Reading the clipboard

$ osc-paste
Foo

Tested Terminals

Installation

Arch Linux

$ paru -S oscclip

Run via poetry

Check if your distribution provides poetry via its package management system! It might be called python-poetry, python3-poetry or similar!

Otherwise: https://python-poetry.org/docs/#installation

$ poetry install [--no-dev]
$ poetry run ocs-copy

--no-dev omits the development dependencies, such as static code checkers.