aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-10-24 21:57:52 +0200
committerSébastien Dailly <sebastien@chimrod.com>2021-10-24 21:57:52 +0200
commit3213849b667d7ff520471e0d1f2cacafbf93d0f0 (patch)
tree67f75b3fbb5d29041b62a9f0b87b3bf5059913f8
parentc4cf67e4ad4283e80b7e1925e1ed1e7f274e8d4c (diff)
rxvt script for copy/paste
-rwxr-xr-xrxvt/.urxvt/ext/pasta18
1 files changed, 18 insertions, 0 deletions
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);
+ }
+ ()
+}