urxvt-scripts icon indicating copy to clipboard operation
urxvt-scripts copied to clipboard

my urxvt scripts

Blog'ed http://www.jukie.net/~bart/blog/tag/urxvt

Contributing

If you find any of this interesting, you may want to create a fork on github. http://github.com/bartman/urxvt-scripts

Main author Bart Trojanowski [email protected]

Contributors Miciah Dashiel Butler Masters Nigel McNie Jonas Kramer Olof Johansson Dave O'Neill Hans Dieter Pearcey Daniel Danner Julius Plenz << your name here >>

mark-yank-urls

This script will cycle through URLs in the terminal and let you copy them (y) or launch a browser ().

This script is known to be working, but is likely not bug-free.

NOTES: apt-get install rxvt-unicode xclip git-core git clone git://git.jukie.net/urxvt.git/ urxvt.git mkdir -p ~/.urxvt cp urxvt.git/mark-yank-urls ~/.urxvt

cat >> ~/.Xdefaults <<END

URxvt.keysym.M-u: perl:mark-yank-urls:activate_mark_mode URxvt.reverseVideo: true URxvt.perl-lib: /home/jukie/bart/.urxvt/ URxvt.perl-ext: selection URxvt.perl-ext: mark-yank-urls END

mark-and-yank

This is a general purpose block copy script. Alt-u emulates the mark-yank-urls script. Alt-y is intended to work like the GNU screen copy mode.

WARNING, there are still many bugs in this script.

NOTES: apt-get install rxvt-unicode xclip git-core git clone git://git.jukie.net/urxvt.git/ urxvt.git mkdir -p ~/.urxvt cp urxvt.git/mark-and-yank ~/.urxvt

cat >> ~/.Xdefaults <<END

URxvt.keysym.M-y: perl:mark-and-yank:activate_mark_mode URxvt.keysym.M-u: perl:mark-and-yank:activate_mark_url_mode URxvt.perl-lib: /home/jukie/bart/.urxvt/ URxvt.perl-ext: mark-and-yank URxvt.urlLauncher: firefox END

TODO: - get rid of globals, use $term->{variable}s - whole screen capture - b,e,w,W,gg,G for movement - merge code with improvements made to mark-yank-urls