This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# Install any build dependencies needed for curl | |
sudo apt-get build-dep curl | |
# Get latest (as of Feb 25, 2016) libcurl | |
mkdir ~/curl | |
cd ~/curl | |
wget http://curl.haxx.se/download/curl-7.59.0.tar.bz2 | |
tar -xvjf curl-7.59.0.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# save as /usr/lib/urxvt/perl/clipboard | |
# in .Xdefaults: URxvt.perl-ext-common: default,matcher,selection-to-clipboard | |
sub on_sel_grab { | |
my $text = quotemeta $_[0]->selection; | |
$text =~ s/\n/\\n/g; | |
$text =~ s/\r/\\r/g; | |
system("echo $text|xclip -i -selection clipboard"); |