bartman's blog

urxvt mouseless url yanking

bartman

In the quest for a completely mouse free desktop, I wanted to be able to yank URLs from the termial without using the mouse. This happens often enough in IRC when I would want to grab the most recent URL and run it in firefox.

I talked to the author of vimperator and he suggested that I look at urxvt (packaged as rxvt-unicode). So I did.

A few hours later and I have a perl plug-in for urxvt that does just want I wanted.

I use [wmii]{tags/wmii} and one of the keys that is unused atm, is Alt-U. I mapped the new feature to Alt-U, but it’s configurable.

Overview

NOTE: the key combinations are intended to be vim-like and permit me to extend them to be able to mark arbitrary text using similar shortcuts as screen copy mode. So HJKL are reserved for future use, hence the use of a control key.

The code

Clone my repo

Install

Configure

Run

Tags: