scripts/colors: print hex color

This commit is contained in:
Michele Guerini Rocco 2021-02-07 11:15:39 +01:00
parent 809113cb77
commit e08878d841
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -10,10 +10,12 @@ function colored
end
for i in (seq 8)
printf "%02d %32s %02d %40s\n" \
printf "%02d %27s (%s) %02d %36s (%s)\n" \
(math $i - 1) \
(colored $colors[$i] $colors[$i]) \
(xrdb -query color(math $i - 1)) \
(math $i + 7) \
(colored br$colors[$i] "bright "$colors[$i])
(colored br$colors[$i] "bright "$colors[$i]) \
(xrdb -query color(math $i + 7))
echo
end