From b686402c6c15dd5737e625e098a4382ebb7ac4e0 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 25 Jan 2017 23:09:40 +0100 Subject: [PATCH] fix clipboard issues with urxvt, also sync primary and clipboard --- Xresources | 2 +- vimrc | 7 +------ xinitrc | 5 +++++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Xresources b/Xresources index 1768663..a1576f2 100644 --- a/Xresources +++ b/Xresources @@ -52,7 +52,7 @@ URxvt*scrollBar: true URxvt*scrollBar_right: true ! Perl extensions -URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select,matcher,font-size +URxvt.perl-ext-common: default,selection-to-clipboard,url-select,keyboard-select,matcher,font-size URxvt.url-select.launcher: xdg-open URxvt.url-select.underline: true URxvt.matcher.button: 1 diff --git a/vimrc b/vimrc index e28500f..f5e3bd6 100644 --- a/vimrc +++ b/vimrc @@ -88,12 +88,7 @@ let g:netrw_liststyle=3 " Use tree style directory listing. set background=dark set path+=** -" Writes to the unnamed register also writes to the * and + registers. This -" makes it easy to interact with the system clipboard -set clipboard^=unnamed -if has ('unnamedplus') - set clipboard^=unnamedplus -endif +set clipboard^=unnamedplus " }}} diff --git a/xinitrc b/xinitrc index 04af3f3..eb8f33c 100755 --- a/xinitrc +++ b/xinitrc @@ -20,6 +20,11 @@ xrdb $HOME/.Xresources xset +fp /usr/share/fonts/local xset fp rehash +# sync primary and secondary clipboard +autocutsel -fork & +autocutsel -selection PRIMARY -fork & + + echo $1 > ~/.xinitrc-arg case $1 in