forked from extern/nix-config
11 lines
530 B
Plaintext
11 lines
530 B
Plaintext
|
#!/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"
|