diff --git a/Readme.md b/Readme.md index cd877b1b..0e6b4204 100644 --- a/Readme.md +++ b/Readme.md @@ -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\)"] Info: + --exclude "OS: getos" Disable an info line at launch --title string Change the title at the top --distro string/cmd Manually set the distro --kernel string/cmd Manually set the kernel diff --git a/fetch b/fetch index 5cb1cf12..1054b5e4 100755 --- a/fetch +++ b/fetch @@ -39,6 +39,11 @@ export LANGUAGE=C # # Optional info lines that are disabled by default are: # "getresolution" "getsong" "getvisualstyle" +# +# Info lines enabled by default are: +# "gettitle" "getdistro" "getkernel" "getuptime" "getpackages" +# "getshell" "getresolution" "getwindowmanager" "getgtktheme" +# "getgtkicons" "getcpu" "getmemory" "getcols" info=( "gettitle" "underline" @@ -884,6 +889,7 @@ usage () { cat << EOF usage: ${0##*/} [--colors 1 2 3 4 5] [--kernel "\$\(uname -rs\)"] Info: + --exclude "OS: getos" Disable an info line at launch --title string Change the title at the top --distro string/cmd Manually set the distro --kernel string/cmd Manually set the kernel @@ -971,6 +977,7 @@ exit 1 while [ "$1" ]; do case $1 in # Info + --exclude) info=("${info[@]/$2}") ;; --title) title="$2" ;; --os) os="$2" ;; --kernel) kernel="$2" ;; @@ -1080,6 +1087,10 @@ printinfo () { fi ;; + "") + continue + ;; + *:*|*) # Update the var var=${function/get/}