about summary refs log tree commit diff stats
path: root/config/color
diff options
context:
space:
mode:
Diffstat (limited to 'config/color')
-rwxr-xr-xconfig/color/colors.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/color/colors.sh b/config/color/colors.sh
new file mode 100755
index 0000000..22116a1
--- /dev/null
+++ b/config/color/colors.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+TMP=$(mktemp)
+xrdb -query>$TMP
+foreground=$(fgrep '*foreground:' < $TMP | cut -f 2)
+background=$(fgrep '*background:' < $TMP | cut -f 2)
+color0=$(fgrep '*color0:' < $TMP | cut -f 2)
+color1=$(fgrep '*color1:' < $TMP | cut -f 2)
+color2=$(fgrep '*color2:' < $TMP | cut -f 2)
+color3=$(fgrep '*color3:' < $TMP | cut -f 2)
+color4=$(fgrep '*color4:' < $TMP | cut -f 2)
+color5=$(fgrep '*color5:' < $TMP | cut -f 2)
+color6=$(fgrep '*color6:' < $TMP | cut -f 2)
+color7=$(fgrep '*color7:' < $TMP | cut -f 2)
+color8=$(fgrep '*color8:' < $TMP | cut -f 2)
+color9=$(fgrep '*color9:' < $TMP | cut -f 2)
+color10=$(fgrep '*color10:' < $TMP | cut -f 2)
+color11=$(fgrep '*color11:' < $TMP | cut -f 2)
+color12=$(fgrep '*color12:' < $TMP | cut -f 2)
+color13=$(fgrep '*color13:' < $TMP | cut -f 2)
+color14=$(fgrep '*color14:' < $TMP | cut -f 2)
+color15=$(fgrep '*color15:' < $TMP | cut -f 2)
+rm $TMP