hexcodes (1007B)
1 #!/bin/sh 2 3 c00=$'\e[0;30m' 4 c01=$'\e[0;31m' 5 c02=$'\e[0;32m' 6 c03=$'\e[0;33m' 7 c04=$'\e[0;34m' 8 c05=$'\e[0;35m' 9 c06=$'\e[0;36m' 10 c07=$'\e[0;37m' 11 c08=$'\e[1;30m' 12 c09=$'\e[1;31m' 13 c10=$'\e[1;32m' 14 c11=$'\e[1;33m' 15 c12=$'\e[1;34m' 16 c13=$'\e[1;35m' 17 c14=$'\e[1;36m' 18 c15=$'\e[1;37m' 19 20 f0=$'\e[1;30m' 21 f1=$'\e[1;37m' 22 f2=$'\e[0;37m' 23 24 hexs=( $(xrdb -query | grep -P '^.*color[0-9]*:' | tr -d '\t' | cut -d: -f2) ) 25 26 cat << EOF 27 ${c00} ░░▓▓██ ${hexs[0]} 28 ${c08} ░░▓▓██ ${hexs[1]} 29 ${c01} ░░▓▓██ ${hexs[2]} 30 ${c09} ░░▓▓██ ${hexs[3]} 31 ${c02} ░░▓▓██ ${hexs[4]} 32 ${c10} ░░▓▓██ ${hexs[5]} 33 ${c03} ░░▓▓██ ${hexs[6]} 34 ${c11} ░░▓▓██ ${hexs[7]} 35 ${c04} ░░▓▓██ ${hexs[8]} 36 ${c12} ░░▓▓██ ${hexs[9]} 37 ${c05} ░░▓▓██ ${hexs[10]} 38 ${c13} ░░▓▓██ ${hexs[11]} 39 ${c06} ░░▓▓██ ${hexs[12]} 40 ${c14} ░░▓▓██ ${hexs[13]} 41 ${c07} ░░▓▓██ ${hexs[14]} 42 ${c15} ░░▓▓██ ${hexs[15]} 43 EOF