Skip to content

Instantly share code, notes, and snippets.

@Nalorokk
Created October 4, 2020 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nalorokk/25ab7f5969e4540d745d349204a9005f to your computer and use it in GitHub Desktop.
Save Nalorokk/25ab7f5969e4540d745d349204a9005f to your computer and use it in GitHub Desktop.
+ verbose=on
+ shift
+ [[ -n '' ]]
+ [[ on != on ]]
+ get_simple -vv
+ [[ -n -vv ]]
++ type -t get_-vv
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n '' ]]
+ (( simple ))
+ get_distro
+ [[ -n '' ]]
+ case $os in
+ [[ -f /bedrock/etc/bedrock-release ]]
+ [[ -f /etc/redstar-release ]]
+ [[ -f /etc/siduction-version ]]
+ [[ -f /etc/mcst_version ]]
+ type -p pveversion
+ type -p lsb_release
+ case $distro_shorthand in
+ lsb_flags=-sd
++ lsb_release -sd
+ distro='"Arch Linux"'
+ [[ Linux version 5.8.7-arch1-1 (linux@archlinux) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP PREEMPT Sat, 05 Sep 2020 12:31:32 +0000 == *Microsoft* ]]
+ [[ 5.8.7-arch1-1 == *Microsoft* ]]
+ [[ Linux version 5.8.7-arch1-1 (linux@archlinux) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP PREEMPT Sat, 05 Sep 2020 12:31:32 +0000 == *chrome-bot* ]]
+ [[ -f /dev/cros_ec ]]
++ trim_quotes '"Arch Linux"'
++ trim_output='"Arch Linux"'
++ trim_output='Arch Linux'
++ printf %s 'Arch Linux'
+ distro='Arch Linux'
+ distro='Arch Linux'
+ [[ Arch Linux == \U\b\u\n\t\u* ]]
+ distro='Arch Linux'
+ [[ -n Arch Linux ]]
+ case $os in
+ machine_arch=x86_64
+ [[ on == on ]]
+ distro+=' x86_64'
+ [[ auto == auto ]]
++ trim 'Arch Linux x86_64'
++ set -f
++ set -- Arch Linux x86_64
++ printf '%s\n' 'Arch Linux x86_64'
++ set +f
+ ascii_distro='Arch Linux x86_64'
+ get_bold
+ case $ascii_bold in
+ ascii_bold='\e[1m'
+ case $bold in
+ bold='\e[1m'
+ get_distro_ascii
+ case $(trim "$ascii_distro") in
++ trim 'Arch Linux x86_64'
++ set -f
++ set -- Arch Linux x86_64
++ printf '%s\n' 'Arch Linux x86_64'
++ set +f
+ set_colors 6 6 7 1
++ color 6
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 6
+ c1='\e[1m'
++ color 6
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 6
+ c2='\e[1m'
++ color 7
++ case $1 in
++ printf '\e[37m%b' '\e[0m'
+ c3='\e[1m'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ c4='\e[1m'
++ color ''
++ case $1 in
++ printf '\e[38;5;%bm' ''
+ c5='\e[1m'
++ color ''
++ case $1 in
++ printf '\e[38;5;%bm' ''
+ c6='\e[1m'
+ [[ '' != \o\f\f ]]
+ set_text_colors 6 6 7 1
+ [[ distro == \d\i\s\t\r\o ]]
++ color 6
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 6
+ title_color=''
+ at_color='\e[0m'
+ underline_color='\e[0m'
++ color 6
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 6
+ subtitle_color=''
+ colon_color='\e[0m'
+ info_color='\e[0m'
+ (( 6 == 8 ))
+ (( 6 == 8 ))
+ (( 6 == 7 ))
+ (( 6 == 7 ))
+ [[ distro == \d\i\s\t\r\o ]]
++ color fg
++ case $1 in
++ printf '\e[37m%b' '\e[0m'
+ bar_color_elapsed=''
+ case ${bar_color_total}${1} in
++ color 6
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 6
+ bar_color_total=''
+ read -rd '' ascii_data
+ [[ distro != distro ]]
+ [[ off == on ]]
+ [[ xterm-256color != minix ]]
+ [[ off != on ]]
+ trap 'printf "\e[?25h\e[?7h"' EXIT
+ printf '\e[?25l\e[?7l'
+ image_backend
+ [[ ascii != \o\f\f ]]
+ type -p convert
+ image_backend=ascii
+ err 'Image: Imagemagick not found, falling back to ascii mode.'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Image: Imagemagick not found, falling back to ascii mode.
'
+ case ${image_backend:-off} in
+ print_ascii
+ [[ -f auto ]]
+ [[ auto == \a\s\c\i\i ]]
+ [[ auto == auto ]]
+ :
+ LC_ALL=ru_RU.UTF-8
+ IFS='
'
+ read -r line
+ line=' -`'
+ line=' -`'
+ (( ++lines,21>ascii_len ))
+ ascii_len=21
+ IFS='
'
+ read -r line
+ line=' .o+`'
+ line=' .o+`'
+ (( ++lines,22>ascii_len ))
+ ascii_len=22
+ IFS='
'
+ read -r line
+ line=' `ooo/'
+ line=' `ooo/'
+ (( ++lines,22>ascii_len ))
+ IFS='
'
+ read -r line
+ line=' `+oooo:'
+ line=' `+oooo:'
+ (( ++lines,23>ascii_len ))
+ ascii_len=23
+ IFS='
'
+ read -r line
+ line=' `+oooooo:'
+ line=' `+oooooo:'
+ (( ++lines,24>ascii_len ))
+ ascii_len=24
+ IFS='
'
+ read -r line
+ line=' -+oooooo+:'
+ line=' -+oooooo+:'
+ (( ++lines,25>ascii_len ))
+ ascii_len=25
+ IFS='
'
+ read -r line
+ line=' `/:-:++oooo+:'
+ line=' `/:-:++oooo+:'
+ (( ++lines,26>ascii_len ))
+ ascii_len=26
+ IFS='
'
+ read -r line
+ line=' `/++++/+++++++:'
+ line=' `/++++/+++++++:'
+ (( ++lines,27>ascii_len ))
+ ascii_len=27
+ IFS='
'
+ read -r line
+ line=' `/++++++++++++++:'
+ line=' `/++++++++++++++:'
+ (( ++lines,28>ascii_len ))
+ ascii_len=28
+ IFS='
'
+ read -r line
+ line=' `/+++ooooooooooooo/`'
+ line=' `/+++ooooooooooooo/`'
+ (( ++lines,30>ascii_len ))
+ ascii_len=30
+ IFS='
'
+ read -r line
+ line=' ./ooosssso++osssssso+`'
+ line=' ./ooosssso++osssssso+`'
+ (( ++lines,31>ascii_len ))
+ ascii_len=31
+ IFS='
'
+ read -r line
+ line=' .oossssso-````/ossssss+`'
+ line=' .oossssso-````/ossssss+`'
+ (( ++lines,32>ascii_len ))
+ ascii_len=32
+ IFS='
'
+ read -r line
+ line=' -osssssso. :ssssssso.'
+ line=' -osssssso. :ssssssso.'
+ (( ++lines,33>ascii_len ))
+ ascii_len=33
+ IFS='
'
+ read -r line
+ line=' :osssssss/ osssso+++.'
+ line=' :osssssss/ osssso+++.'
+ (( ++lines,34>ascii_len ))
+ ascii_len=34
+ IFS='
'
+ read -r line
+ line=' /ossssssss/ +ssssooo/-'
+ line=' /ossssssss/ +ssssooo/-'
+ (( ++lines,34>ascii_len ))
+ IFS='
'
+ read -r line
+ line=' `/ossssso+/:- -:/+osssso+-'
+ line=' `/ossssso+/:- -:/+osssso+-'
+ (( ++lines,36>ascii_len ))
+ ascii_len=36
+ IFS='
'
+ read -r line
+ line=' `+sso+:-` `.-/+oso:'
+ line=' `+sso+:-` `.-/+oso:'
+ (( ++lines,37>ascii_len ))
+ ascii_len=37
+ IFS='
'
+ read -r line
+ line=' `++:. `-/+/'
+ line=' `++:. `-/+/'
+ (( ++lines,38>ascii_len ))
+ ascii_len=38
+ IFS='
'
+ read -r line
+ line=' .` `/'
+ line=' .` `/'
+ (( ++lines,38>ascii_len ))
+ IFS='
'
+ read -r line
+ (( lines==1 ))
+ ascii_data='\e[1m -`
.o+`
`ooo/
`+oooo:
`+oooooo:
-+oooooo+:
`/:-:++oooo+:
`/++++/+++++++:
`/++++++++++++++:
`/+++o${c2}oooooooo\e[1moooo/`
${c2} \e[1m./${c2}ooosssso++osssssso\e[1m+`
${c2} .oossssso-````/ossssss+`
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/'
+ ascii_data='\e[1m -`
.o+`
`ooo/
`+oooo:
`+oooooo:
-+oooooo+:
`/:-:++oooo+:
`/++++/+++++++:
`/++++++++++++++:
`/+++o\e[1moooooooo\e[1moooo/`
\e[1m \e[1m./\e[1mooosssso++osssssso\e[1m+`
\e[1m .oossssso-````/ossssss+`
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/'
+ ascii_data='\e[1m -`
.o+`
`ooo/
`+oooo:
`+oooooo:
-+oooooo+:
`/:-:++oooo+:
`/++++/+++++++:
`/++++++++++++++:
`/+++o\e[1moooooooo\e[1moooo/`
\e[1m \e[1m./\e[1mooosssso++osssssso\e[1m+`
\e[1m .oossssso-````/ossssss+`
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/'
+ ascii_data='\e[1m -`
.o+`
`ooo/
`+oooo:
`+oooooo:
-+oooooo+:
`/:-:++oooo+:
`/++++/+++++++:
`/++++++++++++++:
`/+++o\e[1moooooooo\e[1moooo/`
\e[1m \e[1m./\e[1mooosssso++osssssso\e[1m+`
\e[1m .oossssso-````/ossssss+`
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/'
+ ascii_data='\e[1m -`
.o+`
`ooo/
`+oooo:
`+oooooo:
-+oooooo+:
`/:-:++oooo+:
`/++++/+++++++:
`/++++++++++++++:
`/+++o\e[1moooooooo\e[1moooo/`
\e[1m \e[1m./\e[1mooosssso++osssssso\e[1m+`
\e[1m .oossssso-````/ossssss+`
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/'
+ ascii_data='\e[1m -`
.o+`
`ooo/
`+oooo:
`+oooooo:
-+oooooo+:
`/:-:++oooo+:
`/++++/+++++++:
`/++++++++++++++:
`/+++o\e[1moooooooo\e[1moooo/`
\e[1m \e[1m./\e[1mooosssso++osssssso\e[1m+`
\e[1m .oossssso-````/ossssss+`
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/'
+ (( text_padding=ascii_len+gap ))
+ printf '%b\n' '\e[1m -`
.o+`
`ooo/
`+oooo:
`+oooooo:
-+oooooo+:
`/:-:++oooo+:
`/++++/+++++++:
`/++++++++++++++:
`/+++o\e[1moooooooo\e[1moooo/`
\e[1m \e[1m./\e[1mooosssso++osssssso\e[1m+`
\e[1m .oossssso-````/ossssss+`
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/\e[0m'
+ LC_ALL=C
+ [[ ascii != \o\f\f ]]
+ printf '\e[%sA\e[9999999D' 19
+ get_cache_dir
+ case $os in
+ cache_dir=/tmp
+ old_functions
+ print_info
+ info title
+ [[ -n '' ]]
+ unset -v prin
+ get_title
+ user=nerman
+ case $title_fqdn in
+ hostname=volantis
+ title='\e[1mnerman\e[0m@\e[1mvolantis'
+ length=15
+ [[ -n '' ]]
+ [[ -n '' ]]
++ trim '\e[1mnerman\e[0m@\e[1mvolantis'
++ set -f
++ set -- '\e[1mnerman\e[0m@\e[1mvolantis'
++ printf '%s\n' '\e[1mnerman\e[0m@\e[1mvolantis'
++ set +f
+ output='\e[1mnerman\e[0m@\e[1mvolantis'
+ [[ -n '' ]]
+ [[ -n \e[1mnerman\e[0m@\e[1mvolantis ]]
+ prin '\e[1mnerman\e[0m@\e[1mvolantis'
++ trim '\e[1mnerman\e[0m@\e[1mvolantis'
++ set -f
++ set -- '\e[1mnerman\e[0m@\e[1mvolantis'
++ printf '%s\n' '\e[1mnerman\e[0m@\e[1mvolantis'
++ set +f
+ [[ -n \e[1mnerman\e[0m@\e[1mvolantis ]]
+ [[ -n '' ]]
+ string='\e[1mnerman\e[0m@\e[1mvolantis'
+ local 'subtitle_color=\e[0m'
++ trim '\e[1mnerman\e[0m@\e[1mvolantis'
++ set -f
++ set -- '\e[1mnerman\e[0m@\e[1mvolantis'
++ printf '%s\n' '\e[1mnerman\e[0m@\e[1mvolantis'
++ set +f
+ string='\e[1mnerman\e[0m@\e[1mvolantis'
++ strip_sequences '\e[1mnerman\e[0m@\e[1mvolantis'
++ strip='\e[1mnerman\e[0m@\e[1mvolantis'
++ strip='\e[1mnerman\e[0m@\e[1mvolantis'
++ strip=nerman@volantis
++ strip=nerman@volantis
++ strip=nerman@volantis
++ strip=nerman@volantis
++ printf '%s\n' nerman@volantis
+ length=nerman@volantis
+ length=15
+ string='\e[1mnerman\e[0m@\e[1mvolantis'
+ string='\e[0m\e[1m\e[1mnerman\e[0m@\e[1mvolantis'
+ printf '%b\n' '\e[41C\e[0m\e[1m\e[1mnerman\e[0m@\e[1mvolantis\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info underline
+ [[ -n '' ]]
+ unset -v prin
+ get_underline
+ [[ on == \o\n ]]
+ printf -v underline %15s
+ printf '%b%b\n' '\e[41C\e[0m' '---------------\e[0m '
+ (( ++info_height ))
+ length=
+ prin=1
+ [[ -n 1 ]]
+ return
+ info OS distro
+ [[ -n distro ]]
+ subtitle=OS
+ unset -v prin
+ get_distro
+ [[ -n Arch Linux x86_64 ]]
+ return
+ [[ -n '' ]]
+ [[ -n distro ]]
++ trim 'Arch Linux x86_64'
++ set -f
++ set -- Arch Linux x86_64
++ printf '%s\n' 'Arch Linux x86_64'
++ set +f
+ output='Arch Linux x86_64'
+ [[ -n distro ]]
+ [[ -n ArchLinuxx86_64 ]]
+ prin OS 'Arch Linux x86_64'
++ trim OS
++ set -f
++ set -- OS
++ printf '%s\n' OS
++ set +f
+ [[ -n OS ]]
+ [[ -n Arch Linux x86_64 ]]
+ [[ -n '' ]]
+ string='OS: Arch Linux x86_64'
++ trim 'OS: Arch Linux x86_64'
++ set -f
++ set -- OS: Arch Linux x86_64
++ printf '%s\n' 'OS: Arch Linux x86_64'
++ set +f
+ string='OS: Arch Linux x86_64'
++ strip_sequences 'OS: Arch Linux x86_64'
++ strip='OS: Arch Linux x86_64'
++ strip='OS: Arch Linux x86_64'
++ strip='OS: Arch Linux x86_64'
++ strip='OS: Arch Linux x86_64'
++ strip='OS: Arch Linux x86_64'
++ strip='OS: Arch Linux x86_64'
++ printf '%s\n' 'OS: Arch Linux x86_64'
+ length='OS: Arch Linux x86_64'
+ length=21
+ string='OS\e[0m\e[0m:\e[0m Arch Linux x86_64'
+ string='\e[1mOS\e[0m\e[0m:\e[0m Arch Linux x86_64'
+ printf '%b\n' '\e[41C\e[1mOS\e[0m\e[0m:\e[0m Arch Linux x86_64\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info Host model
+ [[ -n model ]]
+ subtitle=Host
+ unset -v prin
+ get_model
+ case $os in
+ [[ -d /system/app/ ]]
+ [[ -f /sys/devices/virtual/dmi/id/product_name ]]
+ model=X7DWU
+ model+=' 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ model='X7DWU 0123456789'
+ case $model in
+ [[ -n '' ]]
+ [[ -n model ]]
++ trim 'X7DWU 0123456789'
++ set -f
++ set -- X7DWU 0123456789
++ printf '%s\n' 'X7DWU 0123456789'
++ set +f
+ output='X7DWU 0123456789'
+ [[ -n model ]]
+ [[ -n X7DWU0123456789 ]]
+ prin Host 'X7DWU 0123456789'
++ trim Host
++ set -f
++ set -- Host
++ printf '%s\n' Host
++ set +f
+ [[ -n Host ]]
+ [[ -n X7DWU 0123456789 ]]
+ [[ -n '' ]]
+ string='Host: X7DWU 0123456789'
++ trim 'Host: X7DWU 0123456789'
++ set -f
++ set -- Host: X7DWU 0123456789
++ printf '%s\n' 'Host: X7DWU 0123456789'
++ set +f
+ string='Host: X7DWU 0123456789'
++ strip_sequences 'Host: X7DWU 0123456789'
++ strip='Host: X7DWU 0123456789'
++ strip='Host: X7DWU 0123456789'
++ strip='Host: X7DWU 0123456789'
++ strip='Host: X7DWU 0123456789'
++ strip='Host: X7DWU 0123456789'
++ strip='Host: X7DWU 0123456789'
++ printf '%s\n' 'Host: X7DWU 0123456789'
+ length='Host: X7DWU 0123456789'
+ length=22
+ string='Host\e[0m\e[0m:\e[0m X7DWU 0123456789'
+ string='\e[1mHost\e[0m\e[0m:\e[0m X7DWU 0123456789'
+ printf '%b\n' '\e[41C\e[1mHost\e[0m\e[0m:\e[0m X7DWU 0123456789\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info Kernel kernel
+ [[ -n kernel ]]
+ subtitle=Kernel
+ unset -v prin
+ get_kernel
+ [[ Linux =~ (AIX|IRIX) ]]
+ [[ Linux == Haiku ]]
+ [[ Linux == Windows ]]
+ case $kernel_shorthand in
+ kernel=5.8.7-arch1-1
+ [[ Linux =~ (BSD|MINIX) ]]
+ [[ -n '' ]]
+ [[ -n kernel ]]
++ trim 5.8.7-arch1-1
++ set -f
++ set -- 5.8.7-arch1-1
++ printf '%s\n' 5.8.7-arch1-1
++ set +f
+ output=5.8.7-arch1-1
+ [[ -n kernel ]]
+ [[ -n 5.8.7-arch1-1 ]]
+ prin Kernel 5.8.7-arch1-1
++ trim Kernel
++ set -f
++ set -- Kernel
++ printf '%s\n' Kernel
++ set +f
+ [[ -n Kernel ]]
+ [[ -n 5.8.7-arch1-1 ]]
+ [[ -n '' ]]
+ string='Kernel: 5.8.7-arch1-1'
++ trim 'Kernel: 5.8.7-arch1-1'
++ set -f
++ set -- Kernel: 5.8.7-arch1-1
++ printf '%s\n' 'Kernel: 5.8.7-arch1-1'
++ set +f
+ string='Kernel: 5.8.7-arch1-1'
++ strip_sequences 'Kernel: 5.8.7-arch1-1'
++ strip='Kernel: 5.8.7-arch1-1'
++ strip='Kernel: 5.8.7-arch1-1'
++ strip='Kernel: 5.8.7-arch1-1'
++ strip='Kernel: 5.8.7-arch1-1'
++ strip='Kernel: 5.8.7-arch1-1'
++ strip='Kernel: 5.8.7-arch1-1'
++ printf '%s\n' 'Kernel: 5.8.7-arch1-1'
+ length='Kernel: 5.8.7-arch1-1'
+ length=21
+ string='Kernel\e[0m\e[0m:\e[0m 5.8.7-arch1-1'
+ string='\e[1mKernel\e[0m\e[0m:\e[0m 5.8.7-arch1-1'
+ printf '%b\n' '\e[41C\e[1mKernel\e[0m\e[0m:\e[0m 5.8.7-arch1-1\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info Uptime uptime
+ [[ -n uptime ]]
+ subtitle=Uptime
+ unset -v prin
+ get_uptime
+ case $os in
+ [[ -r /proc/uptime ]]
+ s='1752383.47 8085524.86'
+ s=1752383
+ d='20 days'
+ h='6 hours'
+ m='46 mins'
+ (( 20 == 1 ))
+ (( 6 == 1 ))
+ (( 46 == 1 ))
+ (( 20 == 0 ))
+ (( 6 == 0 ))
+ (( 46 == 0 ))
+ uptime='20 days, 6 hours, 46 mins'
+ uptime='20 days, 6 hours, 46 mins'
+ uptime='20 days, 6 hours, 46 mins'
+ case $uptime_shorthand in
+ [[ -n '' ]]
+ [[ -n uptime ]]
++ trim '20 days, 6 hours, 46 mins'
++ set -f
++ set -- 20 days, 6 hours, 46 mins
++ printf '%s\n' '20 days, 6 hours, 46 mins'
++ set +f
+ output='20 days, 6 hours, 46 mins'
+ [[ -n uptime ]]
+ [[ -n 20days,6hours,46mins ]]
+ prin Uptime '20 days, 6 hours, 46 mins'
++ trim Uptime
++ set -f
++ set -- Uptime
++ printf '%s\n' Uptime
++ set +f
+ [[ -n Uptime ]]
+ [[ -n 20 days, 6 hours, 46 mins ]]
+ [[ -n '' ]]
+ string='Uptime: 20 days, 6 hours, 46 mins'
++ trim 'Uptime: 20 days, 6 hours, 46 mins'
++ set -f
++ set -- Uptime: 20 days, 6 hours, 46 mins
++ printf '%s\n' 'Uptime: 20 days, 6 hours, 46 mins'
++ set +f
+ string='Uptime: 20 days, 6 hours, 46 mins'
++ strip_sequences 'Uptime: 20 days, 6 hours, 46 mins'
++ strip='Uptime: 20 days, 6 hours, 46 mins'
++ strip='Uptime: 20 days, 6 hours, 46 mins'
++ strip='Uptime: 20 days, 6 hours, 46 mins'
++ strip='Uptime: 20 days, 6 hours, 46 mins'
++ strip='Uptime: 20 days, 6 hours, 46 mins'
++ strip='Uptime: 20 days, 6 hours, 46 mins'
++ printf '%s\n' 'Uptime: 20 days, 6 hours, 46 mins'
+ length='Uptime: 20 days, 6 hours, 46 mins'
+ length=33
+ string='Uptime\e[0m\e[0m:\e[0m 20 days, 6 hours, 46 mins'
+ string='\e[1mUptime\e[0m\e[0m:\e[0m 20 days, 6 hours, 46 mins'
+ printf '%b\n' '\e[41C\e[1mUptime\e[0m\e[0m:\e[0m 20 days, 6 hours, 46 mins\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info Packages packages
+ [[ -n packages ]]
+ subtitle=Packages
+ unset -v prin
+ get_packages
+ [[ -f /bedrock/etc/bedrock-release ]]
+ case $os in
+ has kiss
+ type -p kiss
+ has pacman-key
+ type -p pacman-key
+ manager=pacman-key
+ tot pacman -Qq --color never
+ IFS='
'
+ read -d '' -ra pkgs
++ pacman -Qq --color never
+ (( packages+=576 ))
+ pac 576
+ (( 576 > 0 ))
+ managers+=("$1 (${manager})")
+ manager_string+='pacman-key, '
+ has dpkg
+ type -p dpkg
+ has rpm
+ type -p rpm
+ has xbps-query
+ type -p xbps-query
+ has apk
+ type -p apk
+ has opkg
+ type -p opkg
+ has pacman-g2
+ type -p pacman-g2
+ has lvu
+ type -p lvu
+ has tce-status
+ type -p tce-status
+ has pkg_info
+ type -p pkg_info
+ has tazpkg
+ type -p tazpkg
+ has sorcery
+ type -p sorcery
+ has alps
+ type -p alps
+ has butch
+ type -p butch
+ has mine
+ type -p mine
+ shopt -s nullglob
+ has brew
+ type -p brew
+ has emerge
+ type -p emerge
+ has Compile
+ type -p Compile
+ has eopkg
+ type -p eopkg
+ has crew
+ type -p crew
+ has pkgtool
+ type -p pkgtool
+ has scratch
+ type -p scratch
+ has kagami
+ type -p kagami
+ has cave
+ type -p cave
+ shopt -u nullglob
+ has kpm-pkg
+ type -p kpm-pkg
+ has guix
+ type -p guix
+ has nix-store
+ type -p nix-store
+ has pkginfo
+ type -p pkginfo
+ case $kernel_name in
+ has pkg
+ type -p pkg
+ (( packages == 0 ))
+ has flatpak
+ type -p flatpak
+ has spm
+ type -p spm
+ has puyo
+ type -p puyo
+ has snap
+ type -p snap
+ manager=appimage
+ has appimaged
+ type -p appimaged
+ (( packages == 0 ))
+ [[ on == on ]]
+ printf -v packages '%s, ' '576 (pacman-key)'
+ packages='576 (pacman-key)'
+ packages='576 (pacman)'
+ [[ -n '' ]]
+ [[ -n packages ]]
++ trim '576 (pacman)'
++ set -f
++ set -- 576 '(pacman)'
++ printf '%s\n' '576 (pacman)'
++ set +f
+ output='576 (pacman)'
+ [[ -n packages ]]
+ [[ -n 576(pacman) ]]
+ prin Packages '576 (pacman)'
++ trim Packages
++ set -f
++ set -- Packages
++ printf '%s\n' Packages
++ set +f
+ [[ -n Packages ]]
+ [[ -n 576 (pacman) ]]
+ [[ -n '' ]]
+ string='Packages: 576 (pacman)'
++ trim 'Packages: 576 (pacman)'
++ set -f
++ set -- Packages: 576 '(pacman)'
++ printf '%s\n' 'Packages: 576 (pacman)'
++ set +f
+ string='Packages: 576 (pacman)'
++ strip_sequences 'Packages: 576 (pacman)'
++ strip='Packages: 576 (pacman)'
++ strip='Packages: 576 (pacman)'
++ strip='Packages: 576 (pacman)'
++ strip='Packages: 576 (pacman)'
++ strip='Packages: 576 (pacman)'
++ strip='Packages: 576 (pacman)'
++ printf '%s\n' 'Packages: 576 (pacman)'
+ length='Packages: 576 (pacman)'
+ length=22
+ string='Packages\e[0m\e[0m:\e[0m 576 (pacman)'
+ string='\e[1mPackages\e[0m\e[0m:\e[0m 576 (pacman)'
+ printf '%b\n' '\e[41C\e[1mPackages\e[0m\e[0m:\e[0m 576 (pacman)\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info Shell shell
+ [[ -n shell ]]
+ subtitle=Shell
+ unset -v prin
+ get_shell
+ case $shell_path in
+ shell='zsh '
+ [[ on != on ]]
+ case ${shell_name:=${SHELL##*/}} in
++ /bin/zsh --version
+ shell+='zsh 5.8 (x86_64-pc-linux-gnu)'
+ shell='zsh 5.8 (x86_64-pc-linux-gnu)'
+ shell='zsh 5.8 (x86_64-pc-linux-gnu)'
+ shell='zsh 5.8 (x86_64-pc-linux-gnu)'
+ shell='zsh 5.8 (x86_64-pc-linux-gnu)'
+ shell='zsh 5.8 '
+ [[ -n '' ]]
+ [[ -n shell ]]
++ trim 'zsh 5.8 '
++ set -f
++ set -- zsh 5.8
++ printf '%s\n' 'zsh 5.8'
++ set +f
+ output='zsh 5.8'
+ [[ -n shell ]]
+ [[ -n zsh5.8 ]]
+ prin Shell 'zsh 5.8'
++ trim Shell
++ set -f
++ set -- Shell
++ printf '%s\n' Shell
++ set +f
+ [[ -n Shell ]]
+ [[ -n zsh 5.8 ]]
+ [[ -n '' ]]
+ string='Shell: zsh 5.8'
++ trim 'Shell: zsh 5.8'
++ set -f
++ set -- Shell: zsh 5.8
++ printf '%s\n' 'Shell: zsh 5.8'
++ set +f
+ string='Shell: zsh 5.8'
++ strip_sequences 'Shell: zsh 5.8'
++ strip='Shell: zsh 5.8'
++ strip='Shell: zsh 5.8'
++ strip='Shell: zsh 5.8'
++ strip='Shell: zsh 5.8'
++ strip='Shell: zsh 5.8'
++ strip='Shell: zsh 5.8'
++ printf '%s\n' 'Shell: zsh 5.8'
+ length='Shell: zsh 5.8'
+ length=14
+ string='Shell\e[0m\e[0m:\e[0m zsh 5.8'
+ string='\e[1mShell\e[0m\e[0m:\e[0m zsh 5.8'
+ printf '%b\n' '\e[41C\e[1mShell\e[0m\e[0m:\e[0m zsh 5.8\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info Resolution resolution
+ [[ -n resolution ]]
+ subtitle=Resolution
+ unset -v prin
+ get_resolution
+ case $os in
+ type -p xrandr
+ type -p xwininfo
+ type -p xdpyinfo
+ [[ -d /sys/class/drm ]]
+ for dev in /sys/class/drm/*/modes
+ read -r resolution _
+ [[ -n 1024x768 ]]
+ break
+ resolution=1024x768
+ [[ -z 1024768 ]]
+ [[ -n '' ]]
+ [[ -n resolution ]]
++ trim 1024x768
++ set -f
++ set -- 1024x768
++ printf '%s\n' 1024x768
++ set +f
+ output=1024x768
+ [[ -n resolution ]]
+ [[ -n 1024x768 ]]
+ prin Resolution 1024x768
++ trim Resolution
++ set -f
++ set -- Resolution
++ printf '%s\n' Resolution
++ set +f
+ [[ -n Resolution ]]
+ [[ -n 1024x768 ]]
+ [[ -n '' ]]
+ string='Resolution: 1024x768'
++ trim 'Resolution: 1024x768'
++ set -f
++ set -- Resolution: 1024x768
++ printf '%s\n' 'Resolution: 1024x768'
++ set +f
+ string='Resolution: 1024x768'
++ strip_sequences 'Resolution: 1024x768'
++ strip='Resolution: 1024x768'
++ strip='Resolution: 1024x768'
++ strip='Resolution: 1024x768'
++ strip='Resolution: 1024x768'
++ strip='Resolution: 1024x768'
++ strip='Resolution: 1024x768'
++ printf '%s\n' 'Resolution: 1024x768'
+ length='Resolution: 1024x768'
+ length=20
+ string='Resolution\e[0m\e[0m:\e[0m 1024x768'
+ string='\e[1mResolution\e[0m\e[0m:\e[0m 1024x768'
+ printf '%b\n' '\e[41C\e[1mResolution\e[0m\e[0m:\e[0m 1024x768\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info DE de
+ [[ -n de ]]
+ subtitle=DE
+ unset -v prin
+ get_de
+ (( de_run == 1 ))
+ case $os in
+ (( wm_run != 1 ))
+ get_wm
+ (( wm_run == 1 ))
+ case $kernel_name in
+ ps_flags=(-e)
+ [[ -n '' ]]
+ [[ -n '' ]]
+ case $os in
+ [[ '' == *WINDOWMAKER* ]]
+ [[ '' == *GNOME*Shell* ]]
+ wm_run=1
+ [[ '' == regolith ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ '' == '' ]]
+ unset -v de
+ return
+ [[ -n '' ]]
+ [[ -n de ]]
++ trim ''
++ set -f
++ set --
++ printf '%s\n' ''
++ set +f
+ output=
+ [[ -n de ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ err 'Info: Couldn'\''t detect DE.'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Info: Couldn'\''t detect DE.
'
+ unset -v subtitle
+ info WM wm
+ [[ -n wm ]]
+ subtitle=WM
+ unset -v prin
+ get_wm
+ (( wm_run == 1 ))
+ return
+ [[ -n '' ]]
+ [[ -n wm ]]
++ trim ''
++ set -f
++ set --
++ printf '%s\n' ''
++ set +f
+ output=
+ [[ -n wm ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ err 'Info: Couldn'\''t detect WM.'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Info: Couldn'\''t detect WM.
'
+ unset -v subtitle
+ info 'WM Theme' wm_theme
+ [[ -n wm_theme ]]
+ subtitle='WM Theme'
+ unset -v prin
+ get_wm_theme
+ (( wm_run != 1 ))
+ (( de_run != 1 ))
+ get_de
+ (( de_run == 1 ))
+ case $os in
+ (( wm_run != 1 ))
+ [[ '' == regolith ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ '' == '' ]]
+ unset -v de
+ return
+ case $wm in
++ trim_quotes ''
++ trim_output=
++ trim_output=
++ printf %s ''
+ wm_theme=
+ [[ -n '' ]]
+ [[ -n wm_theme ]]
++ trim ''
++ set -f
++ set --
++ printf '%s\n' ''
++ set +f
+ output=
+ [[ -n wm_theme ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ err 'Info: Couldn'\''t detect WM Theme.'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Info: Couldn'\''t detect WM Theme.
'
+ unset -v subtitle
+ info Theme theme
+ [[ -n theme ]]
+ subtitle=Theme
+ unset -v prin
+ get_theme
+ name=gtk-theme-name
+ gsettings=gtk-theme
+ gconf=gtk_theme
+ xfconf=/Net/ThemeName
+ kde=Name
+ get_style
+ unset gtk2_theme gtk3_theme theme path
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n theme ]]
++ trim ''
++ set -f
++ set --
++ printf '%s\n' ''
++ set +f
+ output=
+ [[ -n theme ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ err 'Info: Couldn'\''t detect Theme.'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Info: Couldn'\''t detect Theme.
'
+ unset -v subtitle
+ info Icons icons
+ [[ -n icons ]]
+ subtitle=Icons
+ unset -v prin
+ get_icons
+ name=gtk-icon-theme-name
+ gsettings=icon-theme
+ gconf=icon_theme
+ xfconf=/Net/IconThemeName
+ kde=Theme
+ get_style
+ unset gtk2_theme gtk3_theme theme path
+ [[ -n '' ]]
+ icons=
+ [[ -n '' ]]
+ [[ -n icons ]]
++ trim ''
++ set -f
++ set --
++ printf '%s\n' ''
++ set +f
+ output=
+ [[ -n icons ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ err 'Info: Couldn'\''t detect Icons.'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Info: Couldn'\''t detect Icons.
'
+ unset -v subtitle
+ info Terminal term
+ [[ -n term ]]
+ subtitle=Terminal
+ unset -v prin
+ get_term
+ (( term_run == 1 ))
+ case $TERM_PROGRAM in
+ term=
+ [[ xterm-256color == \t\w\5\2 ]]
+ [[ xterm-256color == \t\w\1\0\0 ]]
+ [[ -n 192.168.1.115 58263 192.168.1.2 22 ]]
+ term=/dev/pts/3
+ [[ -n '' ]]
+ [[ -z /dev/pts/3 ]]
+ term_run=1
+ [[ -n '' ]]
+ [[ -n term ]]
++ trim /dev/pts/3
++ set -f
++ set -- /dev/pts/3
++ printf '%s\n' /dev/pts/3
++ set +f
+ output=/dev/pts/3
+ [[ -n term ]]
+ [[ -n /dev/pts/3 ]]
+ prin Terminal /dev/pts/3
++ trim Terminal
++ set -f
++ set -- Terminal
++ printf '%s\n' Terminal
++ set +f
+ [[ -n Terminal ]]
+ [[ -n /dev/pts/3 ]]
+ [[ -n '' ]]
+ string='Terminal: /dev/pts/3'
++ trim 'Terminal: /dev/pts/3'
++ set -f
++ set -- Terminal: /dev/pts/3
++ printf '%s\n' 'Terminal: /dev/pts/3'
++ set +f
+ string='Terminal: /dev/pts/3'
++ strip_sequences 'Terminal: /dev/pts/3'
++ strip='Terminal: /dev/pts/3'
++ strip='Terminal: /dev/pts/3'
++ strip='Terminal: /dev/pts/3'
++ strip='Terminal: /dev/pts/3'
++ strip='Terminal: /dev/pts/3'
++ strip='Terminal: /dev/pts/3'
++ printf '%s\n' 'Terminal: /dev/pts/3'
+ length='Terminal: /dev/pts/3'
+ length=20
+ string='Terminal\e[0m\e[0m:\e[0m /dev/pts/3'
+ string='\e[1mTerminal\e[0m\e[0m:\e[0m /dev/pts/3'
+ printf '%b\n' '\e[41C\e[1mTerminal\e[0m\e[0m:\e[0m /dev/pts/3\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info 'Terminal Font' term_font
+ [[ -n term_font ]]
+ subtitle='Terminal Font'
+ unset -v prin
+ get_term_font
+ (( term_run != 1 ))
+ case $term in
+ [[ -n '' ]]
+ [[ -n term_font ]]
++ trim ''
++ set -f
++ set --
++ printf '%s\n' ''
++ set +f
+ output=
+ [[ -n term_font ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ err 'Info: Couldn'\''t detect Terminal Font.'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Info: Couldn'\''t detect Terminal Font.
'
+ unset -v subtitle
+ info CPU cpu
+ [[ -n cpu ]]
+ subtitle=CPU
+ unset -v prin
+ get_cpu
+ case $os in
+ cpu_file=/proc/cpuinfo
+ case $kernel_machine in
++ awk -F '\\s*: | @' '/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
cpu=$2; if ($1 == "Hardware") exit } END { print cpu }' /proc/cpuinfo
+ cpu='Intel(R) Xeon(R) CPU E5450 '
+ speed_dir=/sys/devices/system/cpu/cpu0/cpufreq
+ for temp_dir in /sys/class/hwmon/*
/usr/bin/neofetch: line 2100: /sys/class/hwmon/hwmon0/name: No such file or directory
+ [[ '' =~ (coretemp|fam15h_power|k10temp) ]]
+ for temp_dir in /sys/class/hwmon/*
+ [[ coretemp =~ (coretemp|fam15h_power|k10temp) ]]
+ temp_dirs=("$temp_dir"/temp*_input)
+ temp_dir=/sys/class/hwmon/hwmon1/temp2_input
+ break
+ [[ -d /sys/devices/system/cpu/cpu0/cpufreq ]]
++ awk -F ': |\\.' '/cpu MHz|^clock/ {printf $2; exit}' /proc/cpuinfo
+ speed=3000
+ speed=3000
+ [[ -f /sys/class/hwmon/hwmon1/temp2_input ]]
+ deg=600
+ case $cpu_cores in
++ grep -c '^processor' /proc/cpuinfo
+ cores=8
+ cpu='Intel(R) Xeon(R) CPU E5450 '
+ cpu='Intel(R) Xeon(R) CPU E5450 '
+ cpu='Intel Xeon CPU E5450 '
+ cpu='Intel Xeon CPU E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cpu='Intel Xeon E5450 '
+ cores=8
+ speed=3000
+ [[ on == \o\f\f ]]
+ [[ logical != \o\f\f ]]
+ [[ -n 8 ]]
+ case $os in
+ cpu='Intel Xeon E5450 (8)'
+ [[ on != \o\f\f ]]
+ [[ -n 3000 ]]
+ (( speed < 1000 ))
+ [[ off == \o\n ]]
+ speed=3.000
+ cpu='Intel Xeon E5450 (8) @ 3.000GHz'
+ [[ off != \o\f\f ]]
+ [[ -n '' ]]
+ [[ -n cpu ]]
++ trim 'Intel Xeon E5450 (8) @ 3.000GHz'
++ set -f
++ set -- Intel Xeon E5450 '(8)' @ 3.000GHz
++ printf '%s\n' 'Intel Xeon E5450 (8) @ 3.000GHz'
++ set +f
+ output='Intel Xeon E5450 (8) @ 3.000GHz'
+ [[ -n cpu ]]
+ [[ -n IntelXeonE5450(8)@3.000GHz ]]
+ prin CPU 'Intel Xeon E5450 (8) @ 3.000GHz'
++ trim CPU
++ set -f
++ set -- CPU
++ printf '%s\n' CPU
++ set +f
+ [[ -n CPU ]]
+ [[ -n Intel Xeon E5450 (8) @ 3.000GHz ]]
+ [[ -n '' ]]
+ string='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ trim 'CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ set -f
++ set -- CPU: Intel Xeon E5450 '(8)' @ 3.000GHz
++ printf '%s\n' 'CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ set +f
+ string='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ strip_sequences 'CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ strip='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ strip='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ strip='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ strip='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ strip='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ strip='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
++ printf '%s\n' 'CPU: Intel Xeon E5450 (8) @ 3.000GHz'
+ length='CPU: Intel Xeon E5450 (8) @ 3.000GHz'
+ length=36
+ string='CPU\e[0m\e[0m:\e[0m Intel Xeon E5450 (8) @ 3.000GHz'
+ string='\e[1mCPU\e[0m\e[0m:\e[0m Intel Xeon E5450 (8) @ 3.000GHz'
+ printf '%b\n' '\e[41C\e[1mCPU\e[0m\e[0m:\e[0m Intel Xeon E5450 (8) @ 3.000GHz\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info GPU gpu
+ [[ -n gpu ]]
+ subtitle=GPU
+ unset -v prin
+ get_gpu
+ case $os in
++ lspci -mm
++ awk -F '\"|\" \"|\\(' '/"Display|"3D|"VGA/ {a[$0] = $1 " " $3 " " $4}
END {for(i in a) {if(!seen[a[i]]++) print a[i]}}'
+ gpu_cmd='09:01.0 Advanced Micro Devices, Inc. [AMD/ATI] ES1000'
+ IFS='
'
+ read -d '' -ra gpus
+ [[ 09:01.0 Advanced Micro Devices, Inc. [AMD/ATI] ES1000 == *Intel* ]]
+ for gpu in "${gpus[@]}"
+ [[ all == \d\e\d\i\c\a\t\e\d ]]
+ [[ all == \i\n\t\e\g\r\a\t\e\d ]]
+ case $gpu in
+ brand='AMD ATI'
+ brand='AMD ATI'
+ brand='AMD ATI'
+ gpu='09:01.0 Advanced Micro Devices, Inc. ES1000'
+ gpu='09:01.0 Advanced Micro Devices, Inc. ES1000'
+ gpu='09:01.0 Advanced Micro Devices, Inc. ES1000'
+ gpu='09:01.0 ES1000'
+ gpu='09:01.0 ES1000'
+ gpu='09:01.0 ES1000'
+ gpu='AMD ATI 09:01.0 ES1000'
+ [[ on == \o\f\f ]]
+ prin GPU 'AMD ATI 09:01.0 ES1000'
++ trim GPU
++ set -f
++ set -- GPU
++ printf '%s\n' GPU
++ set +f
+ [[ -n GPU ]]
+ [[ -n AMD ATI 09:01.0 ES1000 ]]
+ [[ -n '' ]]
+ string='GPU: AMD ATI 09:01.0 ES1000'
++ trim 'GPU: AMD ATI 09:01.0 ES1000'
++ set -f
++ set -- GPU: AMD ATI 09:01.0 ES1000
++ printf '%s\n' 'GPU: AMD ATI 09:01.0 ES1000'
++ set +f
+ string='GPU: AMD ATI 09:01.0 ES1000'
++ strip_sequences 'GPU: AMD ATI 09:01.0 ES1000'
++ strip='GPU: AMD ATI 09:01.0 ES1000'
++ strip='GPU: AMD ATI 09:01.0 ES1000'
++ strip='GPU: AMD ATI 09:01.0 ES1000'
++ strip='GPU: AMD ATI 09:01.0 ES1000'
++ strip='GPU: AMD ATI 09:01.0 ES1000'
++ strip='GPU: AMD ATI 09:01.0 ES1000'
++ printf '%s\n' 'GPU: AMD ATI 09:01.0 ES1000'
+ length='GPU: AMD ATI 09:01.0 ES1000'
+ length=27
+ string='GPU\e[0m\e[0m:\e[0m AMD ATI 09:01.0 ES1000'
+ string='\e[1mGPU\e[0m\e[0m:\e[0m AMD ATI 09:01.0 ES1000'
+ printf '%b\n' '\e[41C\e[1mGPU\e[0m\e[0m:\e[0m AMD ATI 09:01.0 ES1000\e[0m '
+ (( ++info_height ))
+ prin=1
+ return
+ [[ -n 1 ]]
+ return
+ info Memory memory
+ [[ -n memory ]]
+ subtitle=Memory
+ unset -v prin
+ get_memory
+ case $os in
+ IFS=:
+ read -r a b
+ case $a in
+ (( mem_used+= 16392640 ))
+ mem_total=' 16392640 '
+ IFS=:
+ read -r a b
+ case $a in
+ mem_used=15426796
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ mem_used=15426664
+ IFS=:
+ read -r a b
+ case $a in
+ mem_used=15251948
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ (( mem_used+= 36872 ))
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ mem_used=15221168
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ case $a in
+ IFS=:
+ read -r a b
+ mem_used=14864
+ mem_total=16008
+ [[ off == \o\n ]]
+ case $memory_unit in
+ memory='14864MiB / 16008MiB '
+ case $memory_display in
+ [[ -n '' ]]
+ [[ -n memory ]]
++ trim '14864MiB / 16008MiB '
++ set -f
++ set -- 14864MiB / 16008MiB
++ printf '%s\n' '14864MiB / 16008MiB'
++ set +f
+ output='14864MiB / 16008MiB'
+ [[ -n memory ]]
+ [[ -n 14864MiB/16008MiB ]]
+ prin Memory '14864MiB / 16008MiB'
++ trim Memory
++ set -f
++ set -- Memory
++ printf '%s\n' Memory
++ set +f
+ [[ -n Memory ]]
+ [[ -n 14864MiB / 16008MiB ]]
+ [[ -n '' ]]
+ string='Memory: 14864MiB / 16008MiB'
++ trim 'Memory: 14864MiB / 16008MiB'
++ set -f
++ set -- Memory: 14864MiB / 16008MiB
++ printf '%s\n' 'Memory: 14864MiB / 16008MiB'
++ set +f
+ string='Memory: 14864MiB / 16008MiB'
++ strip_sequences 'Memory: 14864MiB / 16008MiB'
++ strip='Memory: 14864MiB / 16008MiB'
++ strip='Memory: 14864MiB / 16008MiB'
++ strip='Memory: 14864MiB / 16008MiB'
++ strip='Memory: 14864MiB / 16008MiB'
++ strip='Memory: 14864MiB / 16008MiB'
++ strip='Memory: 14864MiB / 16008MiB'
++ printf '%s\n' 'Memory: 14864MiB / 16008MiB'
+ length='Memory: 14864MiB / 16008MiB'
+ length=27
+ string='Memory\e[0m\e[0m:\e[0m 14864MiB / 16008MiB'
+ string='\e[1mMemory\e[0m\e[0m:\e[0m 14864MiB / 16008MiB'
+ printf '%b\n' '\e[41C\e[1mMemory\e[0m\e[0m:\e[0m 14864MiB / 16008MiB\e[0m '
+ (( ++info_height ))
+ prin=1
+ unset -v subtitle
+ info cols
+ [[ -n '' ]]
+ unset -v prin
+ get_cols
+ local blocks blocks2 cols
+ [[ on == \o\n ]]
+ printf -v block_width %3s
+ (( block_range[0] ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks '%b\e[3%bm\e[4%bm%b' '' 0 0 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks '%b\e[3%bm\e[4%bm%b' ' ' 1 1 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks '%b\e[3%bm\e[4%bm%b' '  ' 2 2 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks '%b\e[3%bm\e[4%bm%b' '   ' 3 3 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks '%b\e[3%bm\e[4%bm%b' '    ' 4 4 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks '%b\e[3%bm\e[4%bm%b' '     ' 5 5 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks '%b\e[3%bm\e[4%bm%b' '      ' 6 6 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks '%b\e[3%bm\e[4%bm%b' '       ' 7 7 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks2 '%b\e[38;5;%bm\e[48;5;%bm%b' '' 8 8 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks2 '%b\e[38;5;%bm\e[48;5;%bm%b' ' ' 9 9 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks2 '%b\e[38;5;%bm\e[48;5;%bm%b' '  ' 10 10 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks2 '%b\e[38;5;%bm\e[48;5;%bm%b' '   ' 11 11 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks2 '%b\e[38;5;%bm\e[48;5;%bm%b' '    ' 12 12 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks2 '%b\e[38;5;%bm\e[48;5;%bm%b' '     ' 13 13 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks2 '%b\e[38;5;%bm\e[48;5;%bm%b' '      ' 14 14 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ case ${block_range[0]} in
+ printf -v blocks2 '%b\e[38;5;%bm\e[48;5;%bm%b' '       ' 15 15 ' '
+ (( block_range[0]++ ))
+ (( block_range[0]<=block_range[1] ))
+ printf -v block_spaces %1s
+ [[ -n         ]]
+ cols+='        nl'
+ [[ -n         ]]
+ cols+='        nl'
+ cols='        nl        '
+ cols='        
        '
+ (( info_height+=block_range[1]>7?block_height+3:block_height+2 ))
+ case $col_offset in
+ printf '\n\e[%bC%b\n\n' 41 '        
        '
+ unset -v blocks blocks2 cols
+ prin=1
+ [[ -n 1 ]]
+ return
+ dynamic_prompt
+ [[ ascii == \o\f\f ]]
+ [[ ascii != \a\s\c\i\i ]]
+ [[ ascii == \w\3\m ]]
+ (( lines=lines>info_height?lines-info_height+1:1 ))
+ printf -v nlines %3s
+ printf %b '\n\n\n'
+ [[ ascii == *w3m* ]]
+ err 'Neofetch command: /usr/bin/neofetch -vv'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Neofetch command: /usr/bin/neofetch -vv
'
+ err 'Neofetch version: 7.1.0'
++ color 1
++ case $1 in
++ printf '%b\e[3%sm' '\e[0m' 1
+ err+='[!]\e[0m Neofetch version: 7.1.0
'
+ [[ on == on ]]
+ printf %b '[!]\e[0m Config: Sourced user config. (/home/nerman/.config/neofetch/config.conf)
[!]\e[0m Image: Imagemagick not found, falling back to ascii mode.
[!]\e[0m Info: Couldn'\''t detect DE.
[!]\e[0m Info: Couldn'\''t detect WM.
[!]\e[0m Info: Couldn'\''t detect WM Theme.
[!]\e[0m Info: Couldn'\''t detect Theme.
[!]\e[0m Info: Couldn'\''t detect Icons.
[!]\e[0m Info: Couldn'\''t detect Terminal Font.
[!]\e[0m Neofetch command: /usr/bin/neofetch -vv
[!]\e[0m Neofetch version: 7.1.0
'
[!] Config: Sourced user config. (/home/nerman/.config/neofetch/config.conf)
[!] Image: Imagemagick not found, falling back to ascii mode.
[!] Info: Couldn't detect DE.
[!] Info: Couldn't detect WM.
[!] Info: Couldn't detect WM Theme.
[!] Info: Couldn't detect Theme.
[!] Info: Couldn't detect Icons.
[!] Info: Couldn't detect Terminal Font.
[!] Neofetch command: /usr/bin/neofetch -vv
[!] Neofetch version: 7.1.0
+ [[ off == on ]]
+ return 0
+ printf '\e[?25h\e[?7h'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment