2011-04-17

By Xyne

Scripts

About

This section of the site is just a collection of various scripts and configs that I have written. Each script should contain a description of itself and its usage at the top of the file. Some of these may eventually end up in the projects section.

Categories

I will try to keep this up-to-date, but this list is static while the one to the right is dynamic, so if there is a discrepancy between the two, this one is wrong.

  • haskell - anything to do with Haskell
  • img - a directory of scripts somehow related to image manipulation or generation
  • openbox - a directory of Openbox-related scripts (usually pipemenus)
  • pacman - Pacman-related scripts
  • system - scripts related to general system administration

Quake-like Terminal in Openbox with URxvt

This was originally posted on the forum. It provides a way to create a drop-down or pop-up terminal that you can quickly toggle (similar to terminals in some games such as Quake, whence the name).

Here is the latest version.

BBCode Color Gradient Script

bbcode_gradient.py applies BBCode color gradients to text on STDIN. It accepts multiple hexadecimal colors as arguments and distributes the gradients evenly between each sequential pair. If the single argument "rainbow" is given, then it will apply a gradient that passes through all hues of the HSV color space.

Usage examples:

bbcode_gradient.py '#ff0000' '#00ff00' '#0000ff' < /path/to/foo.txt
echo "woooooooooooooooooooooooooooooooooot" | bbcode_gradient.py rainbow

Chess Imager

chess_imager.py is a CLI tool for generating chessboard representations. It supports the following:

It is mostly a wrapper for the first but it may be expanded in the future.

Examples

Image from Steve Eddins' Chess Imager: chess board example

Unicode representation:

♖♘♗♕♔♗♘♖
♙♙♙♙♙♙♙♙




♟♟♟♟♟♟♟♟
♜♞♝♛♚♝♞♜

Other Miscellaneous Scripts On The Forum