misc/scripts/colors

21 lines
458 B
Fish
Executable File

#!/usr/bin/env fish
set colors black red green yellow blue magenta cyan white
function colored
set_color -b $argv[1]
set_color 181b20
echo -n $argv[2]
set_color normal
end
for i in (seq 8)
printf "%02d %-27s (%s) %02d %-36s (%s)\n" \
(math $i - 1) \
(colored $colors[$i] $colors[$i]) \
(xrdb -get color(math $i - 1)) \
(math $i + 7) \
(colored br$colors[$i] "bright "$colors[$i]) \
(xrdb -get color(math $i + 7))
end