tDump colors and display their HEX name - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit a008f26a32a007e84582a2aa179ff55809582cd6
(DIR) parent 03f49c6e73b26c66d407c0e8ff4fc828150e046b
(HTM) Author: Willy Goiffon <w.goiffon@gmail.com>
Date: Mon, 30 Sep 2013 14:21:03 +0200
Dump colors and display their HEX name
Diffstat:
A cdump | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/cdump b/cdump
t@@ -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