From 46596692dcbd30c8d105d79b96aacc8b9f3bd12f Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 17 Aug 2023 20:27:50 +0100 Subject: pasting, pipewire --- .config/kak/kakrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.config/kak/kakrc') diff --git a/.config/kak/kakrc b/.config/kak/kakrc index c5ab4a7..fb2baec 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -15,6 +15,14 @@ hook global WinSetOption filetype=python %{ map global user ':comment-line' -docstring 'comment line' -map global user 'wl-copy' -docstring 'wl-copy' - +# map global user 'wl-copy' -docstring 'wl-copy' add-highlighter global/longline column 70 ,rgb:333333 + + +evaluate-commands %sh{ + copy='printf "\033]52;;%s\033\\" $(base64 | tr -d "\n") > $( [ -n "$kak_client_pid" ] && echo /proc/$kak_client_pid/fd/0 || echo /dev/tty )' + backend='OSC 52' + printf "map global user -docstring 'yank to primary' y '%s:echo -markup %%{{Information}copied selection to %s primary}'\n" "$copy" "$backend" +} + + -- cgit v1.2.3