about summary refs log tree commit diff stats
path: root/config/color/colors.sh
blob: 7fbb3145870397292160453818e4e2187a86caae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
TMP=$(mktemp)
xrdb -query>$TMP
foreground=$(grep -F '*foreground:' < $TMP | cut -f 2 | head -1)
background=$(grep -F '*background:' < $TMP | cut -f 2 | head -1)
color0=$(grep -F '*color0:' < $TMP | cut -f 2 | head -1)
color1=$(grep -F '*color1:' < $TMP | cut -f 2 | head -1)
color2=$(grep -F '*color2:' < $TMP | cut -f 2 | head -1)
color3=$(grep -F '*color3:' < $TMP | cut -f 2 | head -1)
color4=$(grep -F '*color4:' < $TMP | cut -f 2 | head -1)
color5=$(grep -F '*color5:' < $TMP | cut -f 2 | head -1)
color6=$(grep -F '*color6:' < $TMP | cut -f 2 | head -1)
color7=$(grep -F '*color7:' < $TMP | cut -f 2 | head -1)
color8=$(grep -F '*color8:' < $TMP | cut -f 2 | head -1)
color9=$(grep -F '*color9:' < $TMP | cut -f 2 | head -1)
color10=$(grep -F '*color10:' < $TMP | cut -f 2 | head -1)
color11=$(grep -F '*color11:' < $TMP | cut -f 2 | head -1)
color12=$(grep -F '*color12:' < $TMP | cut -f 2 | head -1)
color13=$(grep -F '*color13:' < $TMP | cut -f 2 | head -1)
color14=$(grep -F '*color14:' < $TMP | cut -f 2 | head -1)
color15=$(grep -F '*color15:' < $TMP | cut -f 2 | head -1)
rm $TMP