fix clipboard
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -130,8 +130,8 @@ pipeline {
|
|||||||
|
|
||||||
cp -R /usr/share/live-helper/templates/* config/templates/
|
cp -R /usr/share/live-helper/templates/* config/templates/
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's|^menu vshift.*|menu vshift 40|' \
|
-e 's|^menu vshift.*|menu vshift 4|' \
|
||||||
-e 's|^menu hshift.*|menu hshift 90|' \
|
-e 's|^menu hshift.*|menu hshift 9|' \
|
||||||
-e 's|^menu width.*|menu width 60|' \
|
-e 's|^menu width.*|menu width 60|' \
|
||||||
-e 's|^menu color sel.*|menu color sel * #ff82c059 #c01f1f1f none|' \
|
-e 's|^menu color sel.*|menu color sel * #ff82c059 #c01f1f1f none|' \
|
||||||
-e 's|^menu color unsel.*|menu color unsel * #8082c059 #c01f1f1f none|' \
|
-e 's|^menu color unsel.*|menu color unsel * #8082c059 #c01f1f1f none|' \
|
||||||
|
|||||||
@@ -5,12 +5,13 @@ URxvt*cursorColor: #65adc7
|
|||||||
URxvt*scrollBar: false
|
URxvt*scrollBar: false
|
||||||
URxvt*internalBorder: 6
|
URxvt*internalBorder: 6
|
||||||
|
|
||||||
URxvt.perl-ext-common: clipboard
|
URxvt.perl-ext-common: default,matcherclipboard
|
||||||
URxvt.keysym.C-S-c: perl:clipboard:copy
|
URxvt.keysym.Mod4-c: perl:clipboard:copy
|
||||||
URxvt.keysym.C-S-v: perl:clipboard:paste
|
URxvt.keysym.Mod4-v: perl:clipboard:paste
|
||||||
|
URxvt.keysym.C-v: perl:clipboard:paste
|
||||||
URxvt.clipboard.autocopy: true
|
URxvt.clipboard.autocopy: true
|
||||||
URxvt.clipboard.copycmd: xclip -i -selection clipboard
|
URxvt.clipboard.copycmd: sh -c 'xsel -i -b'
|
||||||
URxvt.clipboard.pastecmd: xclip -o -selection clipboard
|
URxvt.clipboard.pastecmd: sh -c 'xsel -o -b'
|
||||||
|
|
||||||
XTerm*faceName: DejaVu Sans Mono
|
XTerm*faceName: DejaVu Sans Mono
|
||||||
XTerm*faceSize: 9
|
XTerm*faceSize: 9
|
||||||
@@ -22,4 +23,4 @@ Xft.antialias: 1
|
|||||||
Xft.hinting: 1
|
Xft.hinting: 1
|
||||||
Xft.hintstyle: hintslight
|
Xft.hintstyle: hintslight
|
||||||
Xft.rgba: none
|
Xft.rgba: none
|
||||||
Xft.dpi: 96
|
Xft.dpi: 96
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ sub paste {
|
|||||||
|
|
||||||
my $str = `$self->{paste_cmd}`;
|
my $str = `$self->{paste_cmd}`;
|
||||||
if ($? == 0) {
|
if ($? == 0) {
|
||||||
$self->tt_paste($str);
|
$self->tt_write($str);
|
||||||
} else {
|
} else {
|
||||||
print STDERR "error running '$self->{paste_cmd}': $!\n";
|
print STDERR "error running '$self->{paste_cmd}': $!\n";
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,7 @@ sub paste_escaped {
|
|||||||
my $str = `$self->{paste_cmd}`;
|
my $str = `$self->{paste_cmd}`;
|
||||||
if ($? == 0) {
|
if ($? == 0) {
|
||||||
$str =~ s/([!#\$%&\*\(\) ='"\\\|\[\]`~,<>\?])/\\\1/g;
|
$str =~ s/([!#\$%&\*\(\) ='"\\\|\[\]`~,<>\?])/\\\1/g;
|
||||||
$self->tt_paste($str);
|
$self->tt_write($str);
|
||||||
} else {
|
} else {
|
||||||
print STDERR "error running '$self->{paste_cmd}': $!\n";
|
print STDERR "error running '$self->{paste_cmd}': $!\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user