Created
February 24, 2011 13:00
-
-
Save TauPan/842128 to your computer and use it in GitHub Desktop.
clipboard extension for urxvt (updated)
This file contains hidden or 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/perl | |
# adapted from https://wiki.archlinux.org/index.php/Rxvt-unicode#Automatic_Script_Management | |
sub on_sel_grab { | |
my ($term, $time) = @_; | |
my $query = $term->selection; | |
$term->selection_grab ($time, 1); | |
$term->selection($query, 1); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment