1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/contrib/clipboard/clip.sh
Witold Filipczyk 911155a862 [clipboard] Added "ui.clipboard_file" to add text to the system clipboard.
ui.clipboard_file is filename of the clipboard file. This file can be a named pipe.
See contrib/clipboard/clip.sh how to set up copying to clipboard using socat and xclip.
Just run clip.sh (it will be running in a loop) before starting elinks and
set ui.clipboard_file = "~/.elinks/clipboard.fifo".
2020-07-27 22:38:54 +02:00

9 lines
125 B
Bash
Executable File

#!/bin/bash
trap exit SIGTERM SIGINT
while true
do
socat -u PIPE:$HOME/.elinks/clipboard.fifo EXEC:"xclip -sel clip"
done