summaryrefslogtreecommitdiffstats
path: root/parse_xdefaults.sh
blob: 984e07beb0c2cd24fa910b07088e222974d85eb4 (plain)
1
2
3
4
5
6
7
#!/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