repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git]
/
urxvt-clipboard
/
clipboard
blob
fb3660370e2d5666bb2eb57d3c2bd637336423d5
1
#! /usr/bin/perl
2
3
sub
on_sel_grab
4
{
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
;
12
}
13