fix clipboard issues with urxvt, also sync primary and clipboard

This commit is contained in:
Thomas Ruoff
2017-01-25 23:09:40 +01:00
parent 4ea86a2923
commit b686402c6c
3 changed files with 7 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ URxvt*scrollBar: true
URxvt*scrollBar_right: true URxvt*scrollBar_right: true
! Perl extensions ! 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.launcher: xdg-open
URxvt.url-select.underline: true URxvt.url-select.underline: true
URxvt.matcher.button: 1 URxvt.matcher.button: 1

7
vimrc
View File

@@ -88,12 +88,7 @@ let g:netrw_liststyle=3 " Use tree style directory listing.
set background=dark set background=dark
set path+=** set path+=**
" Writes to the unnamed register also writes to the * and + registers. This set clipboard^=unnamedplus
" makes it easy to interact with the system clipboard
set clipboard^=unnamed
if has ('unnamedplus')
set clipboard^=unnamedplus
endif
" }}} " }}}

View File

@@ -20,6 +20,11 @@ xrdb $HOME/.Xresources
xset +fp /usr/share/fonts/local xset +fp /usr/share/fonts/local
xset fp rehash xset fp rehash
# sync primary and secondary clipboard
autocutsel -fork &
autocutsel -selection PRIMARY -fork &
echo $1 > ~/.xinitrc-arg echo $1 > ~/.xinitrc-arg
case $1 in case $1 in