screen でのコピー内容をクリップボードに反映

writebuf でファイル出力したものを putclip で取り込んであげればよいらしい。

キーバインドのところは適宜設定していただければと。

bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "/usr/bin/putclip < /tmp/screen-exchange"'
bindkey -m Y   eval 'stuff Y'    'writebuf' 'exec sh -c "/usr/bin/putclip < /tmp/screen-exchange"'
bindkey -m W   eval 'stuff W'    'writebuf' 'exec sh -c "/usr/bin/putclip < /tmp/screen-exchange"'