diff --git a/1.1.md b/1.1.md index 38d5343e..7778036a 100644 --- a/1.1.md +++ b/1.1.md @@ -91,8 +91,8 @@ fetch --stdout --disable kernel packages gtktheme ``` -- Added `--stdout_seperator` and `$stdout_seperator` which takes a string and adds it
-as a seperator between the output. +- Added `--stdout_separator` and `$stdout_separator` which takes a string and adds it
+as a separator between the output. - Added `--stdout_title` and `$stdout_title` which allow you to toggle the `title@hostname`
from appearing in the output. - Added `--stdout_subtitles` which allow you to toggle the `Info:` titles from appearing in
@@ -102,8 +102,8 @@ the output. # Hiding subtitles fetch --stdout --stdout_subtitles off -# Custom seperator -fetch --stdout disk gpu --stdout_seperator " | " +# Custom separator +fetch --stdout disk gpu --stdout_separator " | " ``` diff --git a/README.md b/README.md index 056a0012..1d7cebdb 100644 --- a/README.md +++ b/README.md @@ -302,7 +302,7 @@ alias fetch2="fetch \ in a plain-text format that you can use with lemonbar etc. --stdout_title on/off Hide/Show the title in stdout mode. - --stdout_seperator string String to use as a seperator in stdout mode. + --stdout_separator string String to use as a separator in stdout mode. --stdout_subtitles on/off Hide/Show the subtitles in stdout mode. diff --git a/config/config b/config/config index 5049afca..60d8d4c8 100644 --- a/config/config +++ b/config/config @@ -334,9 +334,9 @@ config_file="$HOME/.config/fetch/config" # Other Options {{{ -# Seperator to use in stdout mode. -# --stdout_seperator string -stdout_seperator=" " +# Separator to use in stdout mode. +# --stdout_separator string +stdout_separator=" " # Hide/Show the title in stdout mode. # --stdout_title on/off diff --git a/fetch b/fetch index f85576d2..cbd6b91d 100755 --- a/fetch +++ b/fetch @@ -354,9 +354,9 @@ config_file="$HOME/.config/fetch/config" # Other Options {{{ -# Seperator to use in stdout mode. -# --stdout_seperator string -stdout_seperator=" " +# Separator to use in stdout mode. +# --stdout_separator string +stdout_separator=" " # Hide/Show the title in stdout mode. # --stdout_title on/off @@ -1243,7 +1243,7 @@ getbattery () { return fi - # Print each battery on a seperate line. + # Print each battery on a separate line. for bat in "${batteries[@]}"; do prin "${title}${index}: ${bat}%" index=$((index + 1)) @@ -1831,7 +1831,7 @@ info () { [ "$stdout_subtitles" == "off" ] && string=${string/*: } # If the string isn't empty, print it. - [ ! -z "$string" ] && printf "%s" "${string}${stdout_seperator}" + [ ! -z "$string" ] && printf "%s" "${string}${stdout_separator}" else printf "%b%s\n" "${padding}${string}${clear}" @@ -1861,7 +1861,7 @@ prin () { # Print the info if [ "$stdout" == "on" ]; then - printf "%s" "${string}${stdout_seperator}" + printf "%s" "${string}${stdout_separator}" else printf "%b%s\n" "${padding}${string}${clear}" fi @@ -1880,7 +1880,7 @@ stdout () { "--stdout") continue ;; "--"*) break ;; *) - case "${args[$((index + 1))]}" in "--"*) unset stdout_seperator ;; esac + case "${args[$((index + 1))]}" in "--"*) unset stdout_separator ;; esac info "$func" ;; esac @@ -2106,7 +2106,7 @@ usage () { cat << EOF in a plain-text format that you can use with lemonbar etc. --stdout_title on/off Hide/Show the title in stdout mode. - --stdout_seperator string String to use as a seperator in stdout mode. + --stdout_separator string String to use as a separator in stdout mode. --stdout_subtitles on/off Hide/Show the subtitles in stdout mode. @@ -2224,7 +2224,7 @@ while [ "$1" ]; do # Stdout --stdout_title) stdout_title="$2" ;; - --stdout_seperator) stdout_seperator="$2" ;; + --stdout_separator) stdout_separator="$2" ;; --stdout_subtitles) stdout_subtitles="$2" ;; --stdout) case "$2" in