From e08878d8410c1111c2c54478ea6271761117e43c Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 7 Feb 2021 11:15:39 +0100 Subject: [PATCH] scripts/colors: print hex color --- scripts/colors | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/colors b/scripts/colors index 2aad695..59a27ac 100755 --- a/scripts/colors +++ b/scripts/colors @@ -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