Archive for January, 2010

Colored Man Pages

You certainly know that manpages tend to be very long and boring to read , especially without any colors at all.

You can easily get colored manpages with just one copy&paste into your .bashrc!

Follow this link to Linuxtidbits' post about "Less Colors For Manpages" and you'll know how to make it happen!

Colored Manpage

© 2010, Arnaud Soyez. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise.

by-sa
――

Script to capture a screenshot (with Chromium) (Command-line)

Introduction

I wanted to take screenshots of about 15 Websites, but didn't want to install any plugins as I wouldn't use them often. I saw a lot of how-to's using import from Imagemagick but they capture the whole screen, not clearly what I was looking for.

Using chromium, xwininfo (from X) and import, I made this bash script which captures only the webpage. See below for the Source code.

How it works

Upon calling chromium-capture:

  • it finds every running chromium browser using xwininfo,
  • gets the window's id of each browser's currently opened tab (because hidden tabs cannot be accessed using xwininfo/import)
  • takes a screenshot of each webpages using import and the windows' ids.
  • saves the screenshot in the current directy as chromium-WINDOWID.png (with WINDOWID = id of the respective window)

You get a screenshot of only the website. All of the arguments and options given to chromium-capture will be used as arguments and options when calling import.

Read the rest of this entry »

© 2010, Arnaud Soyez. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise.

by-sa
――