misc/scripts/colors

21 lines
458 B
Plaintext
Raw Permalink Normal View History

2019-01-26 18:51:26 +01:00
#!/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)
2021-06-04 21:11:33 +02:00
printf "%02d %-27s (%s) %02d %-36s (%s)\n" \
2019-01-26 18:51:26 +01:00
(math $i - 1) \
(colored $colors[$i] $colors[$i]) \
2021-07-04 15:27:04 +02:00
(xrdb -get color(math $i - 1)) \
2019-01-26 18:51:26 +01:00
(math $i + 7) \
2021-02-07 11:15:39 +01:00
(colored br$colors[$i] "bright "$colors[$i]) \
2021-07-04 15:27:04 +02:00
(xrdb -get color(math $i + 7))
2019-01-26 18:51:26 +01:00
end