updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / urxvt-clipboard / clipboard
blobfb3660370e2d5666bb2eb57d3c2bd637336423d5
1 #! /usr/bin/perl
3 sub on_sel_grab
5 my $query = $_[0]->selection;
6 open (my $pipe,'|-','xsel -ib') or die;
7 print $pipe $query;
8 close $pipe;
9 open (my $pipe,'|-','xsel -ip') or die;
10 print $pipe $query;
11 close $pipe;