scripts/colors: use xrdb -get

This commit is contained in:
Michele Guerini Rocco 2021-07-04 15:27:04 +02:00
parent e711811a02
commit b1f12a32f3
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

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