Acorns

Marcel's blog

Short URL Klipper Script

As mentioned in my last post, Klipper opens the door to a world of useful little mini-applets. Here's another script that's been handy lately: klipper_ln-s. It posts to ln-s.net, a url-shortening service.

You select the url to shorten and invoke the klipper action. Then it posts your url and puts the short version on your clipboard. It pops a notification dialog when the URL is ready for you to paste.

To use klipper_ln-s yourself:

  • Put the script in your bin directory
  • Make sure ruby is installed; it's used to escape the URL for the form post
  • Add it to your list of klipper actions with a regex that matches URLs

Post a comment

Name or OpenID (required)


(lesstile enabled - surround code blocks with ---)