Added launch flag to disable info lines at launch
This commit is contained in:
parent
afbc03605b
commit
d7f5c575d3
|
@ -110,6 +110,7 @@ Once you set the var the script will scale the image and padding
|
||||||
usage: ${0##*/} [--colors 1 2 3 4 5] [--kernel "\$\(uname -rs\)"]
|
usage: ${0##*/} [--colors 1 2 3 4 5] [--kernel "\$\(uname -rs\)"]
|
||||||
|
|
||||||
Info:
|
Info:
|
||||||
|
--exclude "OS: getos" Disable an info line at launch
|
||||||
--title string Change the title at the top
|
--title string Change the title at the top
|
||||||
--distro string/cmd Manually set the distro
|
--distro string/cmd Manually set the distro
|
||||||
--kernel string/cmd Manually set the kernel
|
--kernel string/cmd Manually set the kernel
|
||||||
|
|
11
fetch
11
fetch
|
@ -39,6 +39,11 @@ export LANGUAGE=C
|
||||||
#
|
#
|
||||||
# Optional info lines that are disabled by default are:
|
# Optional info lines that are disabled by default are:
|
||||||
# "getresolution" "getsong" "getvisualstyle"
|
# "getresolution" "getsong" "getvisualstyle"
|
||||||
|
#
|
||||||
|
# Info lines enabled by default are:
|
||||||
|
# "gettitle" "getdistro" "getkernel" "getuptime" "getpackages"
|
||||||
|
# "getshell" "getresolution" "getwindowmanager" "getgtktheme"
|
||||||
|
# "getgtkicons" "getcpu" "getmemory" "getcols"
|
||||||
info=(
|
info=(
|
||||||
"gettitle"
|
"gettitle"
|
||||||
"underline"
|
"underline"
|
||||||
|
@ -884,6 +889,7 @@ usage () { cat << EOF
|
||||||
usage: ${0##*/} [--colors 1 2 3 4 5] [--kernel "\$\(uname -rs\)"]
|
usage: ${0##*/} [--colors 1 2 3 4 5] [--kernel "\$\(uname -rs\)"]
|
||||||
|
|
||||||
Info:
|
Info:
|
||||||
|
--exclude "OS: getos" Disable an info line at launch
|
||||||
--title string Change the title at the top
|
--title string Change the title at the top
|
||||||
--distro string/cmd Manually set the distro
|
--distro string/cmd Manually set the distro
|
||||||
--kernel string/cmd Manually set the kernel
|
--kernel string/cmd Manually set the kernel
|
||||||
|
@ -971,6 +977,7 @@ exit 1
|
||||||
while [ "$1" ]; do
|
while [ "$1" ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
# Info
|
# Info
|
||||||
|
--exclude) info=("${info[@]/$2}") ;;
|
||||||
--title) title="$2" ;;
|
--title) title="$2" ;;
|
||||||
--os) os="$2" ;;
|
--os) os="$2" ;;
|
||||||
--kernel) kernel="$2" ;;
|
--kernel) kernel="$2" ;;
|
||||||
|
@ -1080,6 +1087,10 @@ printinfo () {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"")
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
|
||||||
*:*|*)
|
*:*|*)
|
||||||
# Update the var
|
# Update the var
|
||||||
var=${function/get/}
|
var=${function/get/}
|
||||||
|
|
Reference in New Issue