A bash script that takes a list of colors and outputs them in various formats for use in other programs.
# Convert the list of colors to the given format
coal --colors "#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000" --xresources
coal --colors "#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000" --gtk2
# Output in both firefox and xresources formats
coal --colors "#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000" --firefox --xresources
# Send the output to a file
coal --colors "#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000" --gtk2 > gtk_colors
Note: You can list as many or as little colors as you like, the list length above is just an example.