diff options
author | Xyne | 2015-06-21 02:46:25 +0000 |
---|---|---|
committer | Xyne | 2015-06-21 02:46:25 +0000 |
commit | e05fc45b797e1da154aa1b7144d30bbf1992743e (patch) | |
tree | a4d94ec9206aa5f5c272ee420da46b528c8f9b93 /clipboard | |
download | aur-urxvt-clipboard.tar.gz |
Initial import.
Diffstat (limited to 'clipboard')
-rw-r--r-- | clipboard | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clipboard b/clipboard new file mode 100644 index 000000000000..fb3660370e2d --- /dev/null +++ b/clipboard @@ -0,0 +1,13 @@ +#! /usr/bin/perl + +sub on_sel_grab +{ + my $query = $_[0]->selection; + open (my $pipe,'|-','xsel -ib') or die; + print $pipe $query; + close $pipe; + open (my $pipe,'|-','xsel -ip') or die; + print $pipe $query; + close $pipe; +} + |