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