#!/bin/bash
colors=($(cat ${HOME}/.Xdefaults | ack ".*color[0-9]{1,2}:.*#" | sed 's/.*color.*#//g'))
prefix=(0 1 2 3 4 5 6 7 8 9 A B C D E F)
for key in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
do
  echo -en "\e]P${prefix[$key]}${colors[$key]}"
done