Change 'seperator' to 'separator'. Thanks @tudurom
This commit is contained in:
parent
a4b01e9545
commit
4fed7d5576
8
1.1.md
8
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<br \>
|
- Added `--stdout_separator` and `$stdout_separator` which takes a string and adds it<br \>
|
||||||
as a seperator between the output.
|
as a separator between the output.
|
||||||
- Added `--stdout_title` and `$stdout_title` which allow you to toggle the `title@hostname`<br \>
|
- Added `--stdout_title` and `$stdout_title` which allow you to toggle the `title@hostname`<br \>
|
||||||
from appearing in the output.
|
from appearing in the output.
|
||||||
- Added `--stdout_subtitles` which allow you to toggle the `Info:` titles from appearing in<br \>
|
- Added `--stdout_subtitles` which allow you to toggle the `Info:` titles from appearing in<br \>
|
||||||
|
@ -102,8 +102,8 @@ the output.
|
||||||
# Hiding subtitles
|
# Hiding subtitles
|
||||||
fetch --stdout --stdout_subtitles off
|
fetch --stdout --stdout_subtitles off
|
||||||
|
|
||||||
# Custom seperator
|
# Custom separator
|
||||||
fetch --stdout disk gpu --stdout_seperator " | "
|
fetch --stdout disk gpu --stdout_separator " | "
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -302,7 +302,7 @@ alias fetch2="fetch \
|
||||||
in a plain-text format that you can use with
|
in a plain-text format that you can use with
|
||||||
lemonbar etc.
|
lemonbar etc.
|
||||||
--stdout_title on/off Hide/Show the title in stdout mode.
|
--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.
|
--stdout_subtitles on/off Hide/Show the subtitles in stdout mode.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -334,9 +334,9 @@ config_file="$HOME/.config/fetch/config"
|
||||||
|
|
||||||
# Other Options {{{
|
# Other Options {{{
|
||||||
|
|
||||||
# Seperator to use in stdout mode.
|
# Separator to use in stdout mode.
|
||||||
# --stdout_seperator string
|
# --stdout_separator string
|
||||||
stdout_seperator=" "
|
stdout_separator=" "
|
||||||
|
|
||||||
# Hide/Show the title in stdout mode.
|
# Hide/Show the title in stdout mode.
|
||||||
# --stdout_title on/off
|
# --stdout_title on/off
|
||||||
|
|
18
fetch
18
fetch
|
@ -354,9 +354,9 @@ config_file="$HOME/.config/fetch/config"
|
||||||
|
|
||||||
# Other Options {{{
|
# Other Options {{{
|
||||||
|
|
||||||
# Seperator to use in stdout mode.
|
# Separator to use in stdout mode.
|
||||||
# --stdout_seperator string
|
# --stdout_separator string
|
||||||
stdout_seperator=" "
|
stdout_separator=" "
|
||||||
|
|
||||||
# Hide/Show the title in stdout mode.
|
# Hide/Show the title in stdout mode.
|
||||||
# --stdout_title on/off
|
# --stdout_title on/off
|
||||||
|
@ -1243,7 +1243,7 @@ getbattery () {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Print each battery on a seperate line.
|
# Print each battery on a separate line.
|
||||||
for bat in "${batteries[@]}"; do
|
for bat in "${batteries[@]}"; do
|
||||||
prin "${title}${index}: ${bat}%"
|
prin "${title}${index}: ${bat}%"
|
||||||
index=$((index + 1))
|
index=$((index + 1))
|
||||||
|
@ -1831,7 +1831,7 @@ info () {
|
||||||
[ "$stdout_subtitles" == "off" ] && string=${string/*: }
|
[ "$stdout_subtitles" == "off" ] && string=${string/*: }
|
||||||
|
|
||||||
# If the string isn't empty, print it.
|
# If the string isn't empty, print it.
|
||||||
[ ! -z "$string" ] && printf "%s" "${string}${stdout_seperator}"
|
[ ! -z "$string" ] && printf "%s" "${string}${stdout_separator}"
|
||||||
|
|
||||||
else
|
else
|
||||||
printf "%b%s\n" "${padding}${string}${clear}"
|
printf "%b%s\n" "${padding}${string}${clear}"
|
||||||
|
@ -1861,7 +1861,7 @@ prin () {
|
||||||
|
|
||||||
# Print the info
|
# Print the info
|
||||||
if [ "$stdout" == "on" ]; then
|
if [ "$stdout" == "on" ]; then
|
||||||
printf "%s" "${string}${stdout_seperator}"
|
printf "%s" "${string}${stdout_separator}"
|
||||||
else
|
else
|
||||||
printf "%b%s\n" "${padding}${string}${clear}"
|
printf "%b%s\n" "${padding}${string}${clear}"
|
||||||
fi
|
fi
|
||||||
|
@ -1880,7 +1880,7 @@ stdout () {
|
||||||
"--stdout") continue ;;
|
"--stdout") continue ;;
|
||||||
"--"*) break ;;
|
"--"*) break ;;
|
||||||
*)
|
*)
|
||||||
case "${args[$((index + 1))]}" in "--"*) unset stdout_seperator ;; esac
|
case "${args[$((index + 1))]}" in "--"*) unset stdout_separator ;; esac
|
||||||
info "$func"
|
info "$func"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -2106,7 +2106,7 @@ usage () { cat << EOF
|
||||||
in a plain-text format that you can use with
|
in a plain-text format that you can use with
|
||||||
lemonbar etc.
|
lemonbar etc.
|
||||||
--stdout_title on/off Hide/Show the title in stdout mode.
|
--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.
|
--stdout_subtitles on/off Hide/Show the subtitles in stdout mode.
|
||||||
|
|
||||||
|
|
||||||
|
@ -2224,7 +2224,7 @@ while [ "$1" ]; do
|
||||||
|
|
||||||
# Stdout
|
# Stdout
|
||||||
--stdout_title) stdout_title="$2" ;;
|
--stdout_title) stdout_title="$2" ;;
|
||||||
--stdout_seperator) stdout_seperator="$2" ;;
|
--stdout_separator) stdout_separator="$2" ;;
|
||||||
--stdout_subtitles) stdout_subtitles="$2" ;;
|
--stdout_subtitles) stdout_subtitles="$2" ;;
|
||||||
--stdout)
|
--stdout)
|
||||||
case "$2" in
|
case "$2" in
|
||||||
|
|
Reference in New Issue