diff --git a/1.3.md b/1.3.md
index 6744b7bf..af2b15f0 100644
--- a/1.3.md
+++ b/1.3.md
@@ -1,6 +1,9 @@
# Fetch 1.3
- More cleanup
+- In `screenfetch` mode the text colors are now colored according
+to your distro's ascii logo colors. This feature is enabled by
+default and you can toggle it using `text_color_auto`.
### Image
diff --git a/README.md b/README.md
index 168d240a..52639bc6 100644
--- a/README.md
+++ b/README.md
@@ -252,6 +252,8 @@ alias fetch2="fetch \
--birthday_time on/off Enable/Disable showing the time in birthday output
Text Colors:
+ --text_color_auto on/off When set to 'on' and you're in ascii mode, the text
+ will be colored according to your distro's ascii logo.
--title_color num Change the color of the title
--at_color num Change the color of "@" in title
--subtitle_color num Change the color of the subtitle
diff --git a/config/config b/config/config
index 78754cad..9d0d8332 100644
--- a/config/config
+++ b/config/config
@@ -178,6 +178,12 @@ block_width=3
# Text Colors {{{
+# When this is set to 'on' and you're in
+# ascii image mode, the text will be colored
+# according to your distro's ascii logo.
+# --text_color_auto on / off
+text_color_auto="on"
+
# --title_color num
title_color=4
diff --git a/fetch b/fetch
index 0ae526aa..a88aeae5 100755
--- a/fetch
+++ b/fetch
@@ -196,6 +196,12 @@ block_width=3
# Text Colors {{{
+# When this is set to 'on' and you're in
+# ascii image mode, the text will be colored
+# according to your distro's ascii logo.
+# --text_color_auto on / off
+text_color_auto="on"
+
# --title_color num
title_color=4
@@ -1774,12 +1780,25 @@ getascii () {
}
ascii_colors () {
+ # Ascii colors
c1=$(color "$1")
c2=$(color "$2")
c3=$(color "$3")
c4=$(color "$4")
c5=$(color "$5")
c6=$(color "$6")
+
+ # Text colors
+ if [ "$text_color_auto" == "on" ]; then
+ title_color="$1"
+ subtitle_color="$2"
+ info_color=7
+ at_color=7
+ colon_color=7
+
+ # If the second color is white use the first for the subtitle
+ [ "$2" == 7 ] && subtitle_color="$1"
+ fi
}
@@ -2198,6 +2217,8 @@ usage () { cat << EOF
usage: fetch --option "value" --option "value"
+ NOTE: There's also a config option for each flag below.
+
Info:
--disable infoname Allows you to disable an info line from appearing
in the output.
@@ -2225,6 +2246,8 @@ usage () { cat << EOF
--birthday_time on/off Enable/Disable showing the time in birthday output
Text Colors:
+ --text_color_auto on/off When set to 'on' and you're in ascii mode, the text
+ will be colored according to your distro's ascii logo.
--title_color num Change the color of the title
--at_color num Change the color of "@" in title
--subtitle_color num Change the color of the subtitle
@@ -2336,6 +2359,7 @@ while [ "$1" ]; do
;;
# Text Colors
+ --text_color_auto) text_color_auto="$2" ;;
--title_color) title_color=$2 ;;
--at_color) at_color=$2 ;;
--subtitle_color) subtitle_color=$2 ;;