summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXyne2015-06-21 02:46:25 +0000
committerXyne2015-06-21 02:46:25 +0000
commite05fc45b797e1da154aa1b7144d30bbf1992743e (patch)
treea4d94ec9206aa5f5c272ee420da46b528c8f9b93
downloadaur-e05fc45b797e1da154aa1b7144d30bbf1992743e.tar.gz
Initial import.
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD16
-rw-r--r--clipboard13
-rw-r--r--urxvt-clipboard.install18
4 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fa17a27a4f4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = urxvt-clipboard
+ pkgdesc = clipboard script for urxvt
+ pkgver = 2
+ pkgrel = 2
+ url = http://wiki.archlinux.org/index.php/Rxvt-unicode
+ install = urxvt-clipboard.install
+ arch = any
+ license = GPL
+ depends = rxvt-unicode
+ depends = xsel
+ conflicts = urxvt-perls
+ source = clipboard
+ md5sums = c676d897f4680b8b3420b130a2ad9784
+
+pkgname = urxvt-clipboard
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c8778065b03
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,16 @@
+pkgname="urxvt-clipboard"
+pkgver=2
+pkgrel=2
+pkgdesc="clipboard script for urxvt"
+arch=("any")
+depends=('rxvt-unicode' 'xsel')
+conflicts=('urxvt-perls')
+license=("GPL")
+url='http://wiki.archlinux.org/index.php/Rxvt-unicode'
+source=("clipboard" )
+md5sums=('c676d897f4680b8b3420b130a2ad9784')
+install="$pkgname.install"
+
+package() {
+ install -Dm644 "$srcdir"/clipboard "$pkgdir"/usr/lib/urxvt/perl/clipboard
+}
diff --git a/clipboard b/clipboard
new file mode 100644
index 00000000000..fb3660370e2
--- /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;
+}
+
diff --git a/urxvt-clipboard.install b/urxvt-clipboard.install
new file mode 100644
index 00000000000..55e844ac379
--- /dev/null
+++ b/urxvt-clipboard.install
@@ -0,0 +1,18 @@
+post_install ()
+{
+ cat <<'MSG'
+Add "clipboard" to the "URxvt.perl-ext-common" field in ~/.Xdefaults to enable
+the clipboard.
+MSG
+}
+
+post_remove ()
+{
+ cat <<'MSG'
+Don't forget to remove "clipboard" from the "URxvt.perl-ext-common" field in
+~/.Xdefaults.
+MSG
+}
+
+# vim: set ts=2 sw=2 et:
+