2024-11-04 04:37:29 +03:00
|
|
|
{ ... }: {
|
|
|
|
text = ''
|
|
|
|
# Copy stdin to system clipboard. *Example:* `echo hi \| copy`.
|
|
|
|
function copy() {
|
|
|
|
wl-copy
|
|
|
|
}
|
2024-04-06 03:03:58 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
# Paste system clipboard to stdout. *Example:* `paste > file.txt`.
|
|
|
|
function paste() {
|
|
|
|
wl-paste
|
|
|
|
}
|
|
|
|
'';
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|