1
0
forked from extern/nix-config
donovanglover-nix-config/.archlinux/PKGBUILDs/tari-scripts/colorhex

11 lines
530 B
Plaintext
Raw Normal View History

#!/bin/bash
colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2))
echo -e "\e[1;37m
Red Green Yellow Blue Magenta Cyan White
─────────────────────────────────────────────────────────────\e[0m"
for i in {1..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done
echo
for i in {9..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done
echo -e "\n"