scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit a008f26a32a007e84582a2aa179ff55809582cd6
parent 03f49c6e73b26c66d407c0e8ff4fc828150e046b
Author: Willy Goiffon <w.goiffon@gmail.com>
Date:   Mon Sep 30 14:21:03 +0200

Dump colors and display their HEX name

Diffstat:
cdump | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/cdump b/cdump @@ -0,0 +1,20 @@ +#!/bin/sh + +FILE=$HOME/.Xresources + +for NUM in {0..7}; do + CN=$(grep "color${NUM}:" $FILE | cut -d':' -f2 | tr -d ' ') + echo -en "\e[0;3${NUM}m $CN\033[m " +done +echo +for NUM in {0..7}; do + echo -n ' ' + echo -en "\033[0;3${NUM}m▉▉▉\033[m" + echo -en "\033[1;3${NUM}m▉▉▉▉\033[m " +done +echo +for NUM in {0..7}; do + CN=$(grep "color$((${NUM}+8)):" $FILE| cut -d':' -f2 | tr -d ' ') + echo -en "\e[1;3${NUM}m $CN\033[m " +done +echo