fix clipboard

This commit is contained in:
2026-03-23 00:24:00 +01:00
parent 31cef62b0c
commit bf0a932dd1
3 changed files with 11 additions and 10 deletions

4
Jenkinsfile vendored
View File

@@ -130,8 +130,8 @@ pipeline {
cp -R /usr/share/live-helper/templates/* config/templates/
sed -i \
-e 's|^menu vshift.*|menu vshift 40|' \
-e 's|^menu hshift.*|menu hshift 90|' \
-e 's|^menu vshift.*|menu vshift 4|' \
-e 's|^menu hshift.*|menu hshift 9|' \
-e 's|^menu width.*|menu width 60|' \
-e 's|^menu color sel.*|menu color sel * #ff82c059 #c01f1f1f none|' \
-e 's|^menu color unsel.*|menu color unsel * #8082c059 #c01f1f1f none|' \

View File

@@ -5,12 +5,13 @@ URxvt*cursorColor: #65adc7
URxvt*scrollBar: false
URxvt*internalBorder: 6
URxvt.perl-ext-common: clipboard
URxvt.keysym.C-S-c: perl:clipboard:copy
URxvt.keysym.C-S-v: perl:clipboard:paste
URxvt.perl-ext-common: default,matcherclipboard
URxvt.keysym.Mod4-c: perl:clipboard:copy
URxvt.keysym.Mod4-v: perl:clipboard:paste
URxvt.keysym.C-v: perl:clipboard:paste
URxvt.clipboard.autocopy: true
URxvt.clipboard.copycmd: xclip -i -selection clipboard
URxvt.clipboard.pastecmd: xclip -o -selection clipboard
URxvt.clipboard.copycmd: sh -c 'xsel -i -b'
URxvt.clipboard.pastecmd: sh -c 'xsel -o -b'
XTerm*faceName: DejaVu Sans Mono
XTerm*faceSize: 9
@@ -22,4 +23,4 @@ Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.rgba: none
Xft.dpi: 96
Xft.dpi: 96

View File

@@ -64,7 +64,7 @@ sub paste {
my $str = `$self->{paste_cmd}`;
if ($? == 0) {
$self->tt_paste($str);
$self->tt_write($str);
} else {
print STDERR "error running '$self->{paste_cmd}': $!\n";
}
@@ -78,7 +78,7 @@ sub paste_escaped {
my $str = `$self->{paste_cmd}`;
if ($? == 0) {
$str =~ s/([!#\$%&\*\(\) ='"\\\|\[\]`~,<>\?])/\\\1/g;
$self->tt_paste($str);
$self->tt_write($str);
} else {
print STDERR "error running '$self->{paste_cmd}': $!\n";
}