From 3213849b667d7ff520471e0d1f2cacafbf93d0f0 Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@chimrod.com>
Date: Sun, 24 Oct 2021 21:57:52 +0200
Subject: rxvt script for copy/paste

---
 rxvt/.urxvt/ext/pasta | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100755 rxvt/.urxvt/ext/pasta

(limited to 'rxvt/.urxvt/ext/pasta')

diff --git a/rxvt/.urxvt/ext/pasta b/rxvt/.urxvt/ext/pasta
new file mode 100755
index 0000000..2ee98ef
--- /dev/null
+++ b/rxvt/.urxvt/ext/pasta
@@ -0,0 +1,18 @@
+#! /usr/bin/env perl -w
+# Author:   Aaron Caffrey
+# Website:  https://github.com/wifiextender/urxvt-pasta
+# License:  GPLv3
+
+# Usage: put the following lines in your .Xdefaults/.Xresources:
+# URxvt.perl-ext-common           : selection-to-clipboard,pasta
+# URxvt.keysym.Control-Shift-V    : perl:pasta:paste
+
+use strict;
+
+sub on_user_command {
+  my ($self, $cmd) = @_;
+  if ($cmd eq "pasta:paste") {
+    $self->selection_request (urxvt::CurrentTime, 3);
+  }
+  ()
+}
-- 
cgit v1.2.3