misc/scripts/colors

22 lines
469 B
Plaintext
Raw 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-02-07 11:15:39 +01: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-02-07 11:15:39 +01:00
(xrdb -query 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]) \
(xrdb -query color(math $i + 7))
2019-08-29 11:08:45 +02:00
echo
2019-01-26 18:51:26 +01:00
end