15 lines
257 B
Nix
15 lines
257 B
Nix
{ ... }:
|
|
{
|
|
text = ''
|
|
# Copy stdin to system clipboard. *Example:* `echo hi \| copy`.
|
|
function copy() {
|
|
wl-copy
|
|
}
|
|
|
|
# Paste system clipboard to stdout. *Example:* `paste > file.txt`.
|
|
function paste() {
|
|
wl-paste
|
|
}
|
|
'';
|
|
}
|