scripts/colors: tweak output

This commit is contained in:
Michele Guerini Rocco 2021-06-04 21:11:33 +02:00
parent cab633dd50
commit c6b1c54542
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -10,12 +10,11 @@ function colored
end
for i in (seq 8)
printf "%02d %27s (%s) %02d %36s (%s)\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]) \
(xrdb -query color(math $i + 7))
echo
end