mirror of https://github.com/balkian/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
239 B
Plaintext
10 lines
239 B
Plaintext
11 years ago
|
#! /usr/bin/perl
|
||
|
# /usr/lib/urxvt/perl/clipboard
|
||
|
|
||
|
sub on_sel_grab {
|
||
|
my $query=quotemeta $_[0]->selection;
|
||
|
$query=~ s/\n/\\n/g;
|
||
|
$query=~ s/\r/\\r/g;
|
||
|
system( "echo " . $query . " | xsel -i -b -p" );
|
||
|
}
|