1

ANSI colorschemes scripts

view story
linux-howto

http://crunchbang.org – Doomicide wrote:Here's a little bashscript, I wrote out of boredom, inspired by sunjacks' zsh script.http://ompldr.org/vYjVqOQ#!/bin/bash XFILE="$HOME/.Xdefaults" COLS="$(cat $XFILE| grep -Ei urxvt[.*]color[01-9] | sort -n -tr -k2 | cut -d: -f2 | tr -d [:blank:])" for i in {0..7}; do echo -en "\e[0;3${i}m ▉▉ $(echo "$COLS" | sed -n $(($i+1))'p')\e[0m"; done; echo for i in {0..7}; do echo -en "\e[0;9${i}m ▉▉ $(echo "$COLS" | sed -n $(($i+9))'p')\e[0m"; done; echo -e "\n"EDIT2: Updated (HowTos)