aboutsummaryrefslogtreecommitdiff
path: root/urxvt/clip
diff options
context:
space:
mode:
Diffstat (limited to 'urxvt/clip')
-rw-r--r--urxvt/clip22
1 files changed, 0 insertions, 22 deletions
diff --git a/urxvt/clip b/urxvt/clip
deleted file mode 100644
index ce698328..00000000
--- a/urxvt/clip
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env perl
-
-# Copy PRIMARY selections to the clipboard too with xsel(1).
-
-use strict;
-use warnings;
-
-sub on_start {
- my ($self) = @_;
- $self->enable( sel_grab => \&clip );
- return;
-}
-
-sub clip {
- my ($self) = @_;
- if ( open CLIPBOARD, '| xsel -ib' ) {
- print CLIPBOARD $self->selection();
- close CLIPBOARD;
- }
- return;
-}
-