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