=== modified file 'xsession-skel/homedir/.Xdefaults' --- old/xsession-skel/homedir/.Xdefaults 2024-08-04 14:11:33 +0000 +++ new/xsession-skel/homedir/.Xdefaults 2024-03-21 16:50:43 +0000 @@ -26,9 +26,9 @@ URxvt.perl-lib: /home/ccx/.urxvt-perl:/home/ccx/bzr/urxmux/urxvt-perl # /* URxvt.perl-ext: -searchable-scrollback,url-select,unbracket-paste */ # /* URxvt.perl-ext: */ -URxvt.perl-ext: -searchable-scrollback,-url-select,unbracket-paste,ccx-osc-52 +URxvt.perl-ext: -searchable-scrollback,-url-select,unbracket-paste URxvt.perl-ext-common: -/* URxvt.keysym.M-u: perl:url-select:select_next */ +URxvt.keysym.M-u: perl:url-select:select_next URxvt.underlineURLs: true URxvt.urlLauncher: /home/ccx/bin/urlopen === modified file 'xsession-skel/homedir/.urxvt-perl/ccx-osc-52' --- old/xsession-skel/homedir/.urxvt-perl/ccx-osc-52 2024-08-04 14:11:33 +0000 +++ new/xsession-skel/homedir/.urxvt-perl/ccx-osc-52 2024-08-03 22:38:44 +0000 @@ -2,24 +2,18 @@ =head1 NAME -ccx-osc-52 - Implement OSC 52 ; provide menu selector for paste options +52-osc - Implement OSC 52 ; Interact with X11 clipboard =head1 SYNOPSIS - urxvt -pe ccx-osc-52 + urxvt -pe 52-osc =head1 DESCRIPTION -This extension implements OSC 52 clipboard requests. - -Instead of interacting with X11 selections directly it calls out to external program -to provide a list of paste options from various sources and lets user pick one. - -This also prevents silent snooping of clipboard by terminal applications as every -request needs to be manually acknowledged. - -Loosely based on: -https://github.com/parantapa/dotfiles/blob/100cabd431e80b3788d03c3c798e79fcbd06d6f3/urxvt-perl/52-osc +This extension implements OSC 52 for interacting with system clipboard + +Most code stolen from: +http://ailin.tucana.uberspace.de/static/nei/*/Code/urxvt/ =cut @@ -72,9 +66,11 @@ } sub clip_menu { + #my ($self, $msg) = @_; my ($self) = @_; my $height = scalar @{$self->{clip_label}}; dbg("height: $height"); + #my $ol = $self->overlay_simple(1, 1, "test\nfoo\nbar"); my $rend_normal = urxvt::SET_BGCOLOR urxvt::DEFAULT_RSTYLE, 2; $self->{overlay} = $self->overlay (0, ($self->nrow - 2 - $height)/2, $self->ncol-2, $height, $rend_normal, 2); clip_overlay_fill($self); @@ -89,6 +85,7 @@ delete $self->{clip_content}; delete $self->{clip_type}; + #$self->{paste} = undef; delete $self->{overlay}; $self->disable ("key_press"); }