Created
December 27, 2023 15:07
-
-
Save Spartan09/e5ba67128324e261270ec0442f1ed857 to your computer and use it in GitHub Desktop.
neofetchlog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ 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/armbian-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='Debian GNU/Linux 12 (bookworm)' | |
+ [[ Linux version 5.15.133.1-microsoft-standard-WSL2 (root@1c602f52c2e4) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 UTC 2023 == *Microsoft* ]] | |
++ wmic.exe os get Version | |
+ windows_version='Version | |
10.0.22631 | |
' | |
++ trim ' | |
10.0.22631 | |
' | |
++ set -f | |
++ set -- $'\r\r' 10.0.22631 $'\r\r' $'\r\r' | |
++ printf '%s\n' ' 10.0.22631 ' | |
++ set +f | |
+ windows_version=' 10.0.22631 ' | |
+ case $distro_shorthand in | |
+ distro+=' on Windows 10.0.22631 ' | |
++ trim_quotes 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 ' | |
++ trim_output='Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 ' | |
++ trim_output='Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 ' | |
++ printf %s 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 ' | |
+ distro='Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 ' | |
+ distro='Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 ' | |
+ [[ Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 == \U\b\u\n\t\u* ]] | |
+ distro='Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 ' | |
+ [[ -n Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 ]] | |
+ case $os in | |
+ machine_arch=x86_64 | |
+ [[ on == on ]] | |
+ distro+=' x86_64' | |
+ [[ auto == auto ]] | |
++ trim 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set -f | |
++ set -- Debian GNU/Linux 12 '(bookworm)' on Windows 10.0.22631 x86_64 | |
++ printf '%s\n' 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set +f | |
+ ascii_distro='Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 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 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set -f | |
++ set -- Debian GNU/Linux 12 '(bookworm)' on Windows 10.0.22631 x86_64 | |
++ printf '%s\n' 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set +f | |
+ set_colors 1 7 3 | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ c1='[0m[31m\e[1m' | |
++ color 7 | |
++ case $1 in | |
++ printf '\e[37m%b' '\e[0m' | |
+ c2='[37m[0m\e[1m' | |
++ color 3 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 3 | |
+ c3='[0m[33m\e[1m' | |
++ color '' | |
++ case $1 in | |
++ printf '\e[38;5;%bm' '' | |
+ c4='[38;5;m\e[1m' | |
++ color '' | |
++ case $1 in | |
++ printf '\e[38;5;%bm' '' | |
+ c5='[38;5;m\e[1m' | |
++ color '' | |
++ case $1 in | |
++ printf '\e[38;5;%bm' '' | |
+ c6='[38;5;m\e[1m' | |
+ [[ '' != \o\f\f ]] | |
+ set_text_colors 1 7 3 | |
+ [[ distro == \d\i\s\t\r\o ]] | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ title_color='[0m[31m' | |
+ at_color='\e[0m' | |
+ underline_color='\e[0m' | |
++ color 7 | |
++ case $1 in | |
++ printf '\e[37m%b' '\e[0m' | |
+ subtitle_color='[37m[0m' | |
+ colon_color='\e[0m' | |
+ info_color='\e[0m' | |
+ (( 1 == 8 )) | |
+ (( 7 == 8 )) | |
+ (( 7 == 7 )) | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ subtitle_color='[0m[31m' | |
+ (( 1 == 7 )) | |
+ [[ distro == \d\i\s\t\r\o ]] | |
++ color fg | |
++ case $1 in | |
++ printf '\e[37m%b' '\e[0m' | |
+ bar_color_elapsed='[37m[0m' | |
+ case ${bar_color_total}${1} in | |
++ color 7 | |
++ case $1 in | |
++ printf '\e[37m%b' '\e[0m' | |
+ bar_color_total='[37m[0m' | |
+ 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 | |
+ [[ w3m != \o\f\f ]] | |
+ type -p convert | |
+ case ${image_backend:-off} in | |
+ get_image_source | |
+ case $image_source in | |
++ get_full_path /home/ayush/images/debian_media/debian-logo.png | |
++ [[ -f /home/ayush/.config/neofetch//home/ayush/images/debian_media/debian-logo.png ]] | |
++ cd /home/ayush/images/debian_media | |
++ local full_dir=debian-logo.png | |
++ [[ -L debian-logo.png ]] | |
+++ pwd -P | |
++ full_dir=/home/ayush/images/debian_media/debian-logo.png | |
++ [[ -e /home/ayush/images/debian_media/debian-logo.png ]] | |
++ printf '%s\n' /home/ayush/images/debian_media/debian-logo.png | |
+ image_source=/home/ayush/images/debian_media/debian-logo.png | |
+ [[ -d /home/ayush/images/debian_media/debian-logo.png ]] | |
+ image=/home/ayush/images/debian_media/debian-logo.png | |
+ err 'Image: Using image '\''/home/ayush/images/debian_media/debian-logo.png'\''' | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ err+='[0m[31m[!]\e[0m Image: Using image '\''/home/ayush/images/debian_media/debian-logo.png'\'' | |
' | |
+ [[ ! -f /home/ayush/images/debian_media/debian-logo.png ]] | |
+ [[ w3m == \u\e\b\e\r\z\u\g ]] | |
+ get_window_size | |
+ [[ w3m == \t\y\c\a\t ]] | |
+ [[ -z '' ]] | |
+ case ${TMUX:-null} in | |
+ printf %b '\e[14t' | |
+ case $bash_version in | |
+ IFS=';t' | |
+ read -d t -t 0.05 -sra term_size | |
+ unset IFS | |
+ [[ w3m == \t\y\c\a\t ]] | |
+ term_height= | |
+ term_width= | |
+ (( 0 < 50 )) | |
+ [[ -n :0 ]] | |
+ [[ Linux != \M\a\c\ \O\S\ \X ]] | |
+ [[ Linux != \m\a\c\O\S ]] | |
+ type -p xdotool | |
+ type -p xwininfo | |
+ type -p xdo | |
+ type -p xprop | |
++ xprop -root _NET_ACTIVE_WINDOW | |
+ current_window='_NET_ACTIVE_WINDOW(WINDOW): window id # 0x6003de' | |
+ current_window=0x6003de | |
+ [[ -n 0x6003de ]] | |
+ term_size=("$(xwininfo -id "$current_window")") | |
++ xwininfo -id 0x6003de | |
X Error: 9: Bad Drawable: 0x6003de | |
Request Major code: 14 | |
Request serial number: 3 | |
xwininfo: error: No such window with id 0x6003de. | |
+ term_width= | |
+ term_width= | |
+ term_height= | |
+ term_height= | |
+ term_width=0 | |
+ (( term_width < 1 )) | |
+ to_ascii 'Image: Failed to find terminal window size.' | |
+ err 'Image: Failed to find terminal window size.' | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ err+='[0m[31m[!]\e[0m Image: Failed to find terminal window size. | |
' | |
+ image_backend=ascii | |
+ print_ascii | |
+ [[ -f /home/ayush/images/debian_media/debian-logo.png ]] | |
+ [[ ! /home/ayush/images/debian_media/debian-logo.png =~ (png|jpg|jpeg|jpe|svg|gif) ]] | |
+ [[ /home/ayush/images/debian_media/debian-logo.png == \a\s\c\i\i ]] | |
+ [[ /home/ayush/images/debian_media/debian-logo.png == auto ]] | |
+ ascii_data=/home/ayush/images/debian_media/debian-logo.png | |
+ LC_ALL=en_US.UTF-8 | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=/home/ayush/images/debian_media/debian-logo.png | |
+ line=/home/ayush/images/debian_media/debian-logo.png | |
+ (( ++lines,47>ascii_len )) | |
+ ascii_len=47 | |
+ IFS=' | |
' | |
+ read -r line | |
+ (( lines==1 )) | |
+ lines= | |
+ ascii_len= | |
+ image_source=auto | |
+ get_distro_ascii | |
+ case $(trim "$ascii_distro") in | |
++ trim 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set -f | |
++ set -- Debian GNU/Linux 12 '(bookworm)' on Windows 10.0.22631 x86_64 | |
++ printf '%s\n' 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set +f | |
+ set_colors 1 7 3 | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ c1='[0m[31m\e[1m' | |
++ color 7 | |
++ case $1 in | |
++ printf '\e[37m%b' '\e[0m' | |
+ c2='[37m[0m\e[1m' | |
++ color 3 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 3 | |
+ c3='[0m[33m\e[1m' | |
++ color '' | |
++ case $1 in | |
++ printf '\e[38;5;%bm' '' | |
+ c4='[38;5;m\e[1m' | |
++ color '' | |
++ case $1 in | |
++ printf '\e[38;5;%bm' '' | |
+ c5='[38;5;m\e[1m' | |
++ color '' | |
++ case $1 in | |
++ printf '\e[38;5;%bm' '' | |
+ c6='[38;5;m\e[1m' | |
+ [[ '' != \o\f\f ]] | |
+ set_text_colors 1 7 3 | |
+ [[ distro == \d\i\s\t\r\o ]] | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ title_color='[0m[31m' | |
+ at_color='\e[0m' | |
+ underline_color='\e[0m' | |
++ color 7 | |
++ case $1 in | |
++ printf '\e[37m%b' '\e[0m' | |
+ subtitle_color='[37m[0m' | |
+ colon_color='\e[0m' | |
+ info_color='\e[0m' | |
+ (( 1 == 8 )) | |
+ (( 7 == 8 )) | |
+ (( 7 == 7 )) | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ subtitle_color='[0m[31m' | |
+ (( 1 == 7 )) | |
+ [[ [37m[0m == \d\i\s\t\r\o ]] | |
++ color '[37m[0m' | |
++ case $1 in | |
++ printf '\e[38;5;%bm' '[37m[0m' | |
+ bar_color_elapsed='[38;5;[37m[0mm' | |
+ case ${bar_color_total}${1} in | |
++ color '[37m[0m' | |
++ case $1 in | |
++ printf '\e[38;5;%bm' '[37m[0m' | |
+ bar_color_total='[38;5;[37m[0mm' | |
+ read -rd '' ascii_data | |
+ [[ distro != distro ]] | |
+ print_ascii | |
+ [[ -f auto ]] | |
+ [[ auto == \a\s\c\i\i ]] | |
+ [[ auto == auto ]] | |
+ : | |
+ LC_ALL=en_US.UTF-8 | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' _,met$$$$$gg.' | |
+ line=' _,met$$$$$gg.' | |
+ (( ++lines,20>ascii_len )) | |
+ ascii_len=20 | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' ,g$$$$$$$$$$$$$$$P.' | |
+ line=' ,g$$$$$$$$$$$$$$$P.' | |
+ (( ++lines,23>ascii_len )) | |
+ ascii_len=23 | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' ,g$$P" """Y$$.".' | |
+ line=' ,g$$P" """Y$$.".' | |
+ (( ++lines,25>ascii_len )) | |
+ ascii_len=25 | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' ,$$P'\'' `$$$.' | |
+ line=' ,$$P'\'' `$$$.' | |
+ (( ++lines,25>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=''\'',$$P ,ggs. `$$b:' | |
+ line=''\'',$$P ,ggs. `$$b:' | |
+ (( ++lines,27>ascii_len )) | |
+ ascii_len=27 | |
+ IFS=' | |
' | |
+ read -r line | |
+ line='`d$$'\'' ,$P"'\'' . $$$' | |
+ line='`d$$'\'' ,$P"'\'' . $$$' | |
+ (( ++lines,26>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' $$P d$'\'' , $$P' | |
+ line=' $$P d$'\'' , $$P' | |
+ (( ++lines,26>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' $$: $$. - ,d$$'\''' | |
+ line=' $$: $$. - ,d$$'\''' | |
+ (( ++lines,26>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' $$; Y$b._ _,d$P'\''' | |
+ line=' $$; Y$b._ _,d$P'\''' | |
+ (( ++lines,24>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' Y$$. `.`"Y$$$$P"'\''' | |
+ line=' Y$$. `.`"Y$$$$P"'\''' | |
+ (( ++lines,21>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' `$$b "-.__' | |
+ line=' `$$b "-.__' | |
+ (( ++lines,16>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' `Y$$' | |
+ line=' `Y$$' | |
+ (( ++lines,6>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' `Y$$.' | |
+ line=' `Y$$.' | |
+ (( ++lines,8>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' `$$b.' | |
+ line=' `$$b.' | |
+ (( ++lines,10>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' `Y$$b.' | |
+ line=' `Y$$b.' | |
+ (( ++lines,13>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' `"Y$b._' | |
+ line=' `"Y$b._' | |
+ (( ++lines,17>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ line=' `"""' | |
+ line=' `"""' | |
+ (( ++lines,18>ascii_len )) | |
+ IFS=' | |
' | |
+ read -r line | |
+ (( lines==1 )) | |
+ ascii_data='${c2} _,met$$$$$gg. | |
,g$$$$$$$$$$$$$$$P. | |
,g$$P" """Y$$.". | |
,$$P'\'' `$$$. | |
'\'',$$P ,ggs. `$$b: | |
`d$$'\'' ,$P"'\'' [0m[31m\e[1m.${c2} $$$ | |
$$P d$'\'' [0m[31m\e[1m,${c2} $$P | |
$$: $$. [0m[31m\e[1m-${c2} ,d$$'\'' | |
$$; Y$b._ _,d$P'\'' | |
Y$$. [0m[31m\e[1m`.${c2}`"Y$$$$P"'\'' | |
${c2} `$$b [0m[31m\e[1m"-.__ | |
${c2} `Y$$ | |
`Y$$. | |
`$$b. | |
`Y$$b. | |
`"Y$b._ | |
`"""' | |
+ ascii_data='[37m[0m\e[1m _,met$$$$$gg. | |
,g$$$$$$$$$$$$$$$P. | |
,g$$P" """Y$$.". | |
,$$P'\'' `$$$. | |
'\'',$$P ,ggs. `$$b: | |
`d$$'\'' ,$P"'\'' [0m[31m\e[1m.[37m[0m\e[1m $$$ | |
$$P d$'\'' [0m[31m\e[1m,[37m[0m\e[1m $$P | |
$$: $$. [0m[31m\e[1m-[37m[0m\e[1m ,d$$'\'' | |
$$; Y$b._ _,d$P'\'' | |
Y$$. [0m[31m\e[1m`.[37m[0m\e[1m`"Y$$$$P"'\'' | |
[37m[0m\e[1m `$$b [0m[31m\e[1m"-.__ | |
[37m[0m\e[1m `Y$$ | |
`Y$$. | |
`$$b. | |
`Y$$b. | |
`"Y$b._ | |
`"""' | |
+ ascii_data='[37m[0m\e[1m _,met$$$$$gg. | |
,g$$$$$$$$$$$$$$$P. | |
,g$$P" """Y$$.". | |
,$$P'\'' `$$$. | |
'\'',$$P ,ggs. `$$b: | |
`d$$'\'' ,$P"'\'' [0m[31m\e[1m.[37m[0m\e[1m $$$ | |
$$P d$'\'' [0m[31m\e[1m,[37m[0m\e[1m $$P | |
$$: $$. [0m[31m\e[1m-[37m[0m\e[1m ,d$$'\'' | |
$$; Y$b._ _,d$P'\'' | |
Y$$. [0m[31m\e[1m`.[37m[0m\e[1m`"Y$$$$P"'\'' | |
[37m[0m\e[1m `$$b [0m[31m\e[1m"-.__ | |
[37m[0m\e[1m `Y$$ | |
`Y$$. | |
`$$b. | |
`Y$$b. | |
`"Y$b._ | |
`"""' | |
+ ascii_data='[37m[0m\e[1m _,met$$$$$gg. | |
,g$$$$$$$$$$$$$$$P. | |
,g$$P" """Y$$.". | |
,$$P'\'' `$$$. | |
'\'',$$P ,ggs. `$$b: | |
`d$$'\'' ,$P"'\'' [0m[31m\e[1m.[37m[0m\e[1m $$$ | |
$$P d$'\'' [0m[31m\e[1m,[37m[0m\e[1m $$P | |
$$: $$. [0m[31m\e[1m-[37m[0m\e[1m ,d$$'\'' | |
$$; Y$b._ _,d$P'\'' | |
Y$$. [0m[31m\e[1m`.[37m[0m\e[1m`"Y$$$$P"'\'' | |
[37m[0m\e[1m `$$b [0m[31m\e[1m"-.__ | |
[37m[0m\e[1m `Y$$ | |
`Y$$. | |
`$$b. | |
`Y$$b. | |
`"Y$b._ | |
`"""' | |
+ ascii_data='[37m[0m\e[1m _,met$$$$$gg. | |
,g$$$$$$$$$$$$$$$P. | |
,g$$P" """Y$$.". | |
,$$P'\'' `$$$. | |
'\'',$$P ,ggs. `$$b: | |
`d$$'\'' ,$P"'\'' [0m[31m\e[1m.[37m[0m\e[1m $$$ | |
$$P d$'\'' [0m[31m\e[1m,[37m[0m\e[1m $$P | |
$$: $$. [0m[31m\e[1m-[37m[0m\e[1m ,d$$'\'' | |
$$; Y$b._ _,d$P'\'' | |
Y$$. [0m[31m\e[1m`.[37m[0m\e[1m`"Y$$$$P"'\'' | |
[37m[0m\e[1m `$$b [0m[31m\e[1m"-.__ | |
[37m[0m\e[1m `Y$$ | |
`Y$$. | |
`$$b. | |
`Y$$b. | |
`"Y$b._ | |
`"""' | |
+ ascii_data='[37m[0m\e[1m _,met$$$$$gg. | |
,g$$$$$$$$$$$$$$$P. | |
,g$$P" """Y$$.". | |
,$$P'\'' `$$$. | |
'\'',$$P ,ggs. `$$b: | |
`d$$'\'' ,$P"'\'' [0m[31m\e[1m.[37m[0m\e[1m $$$ | |
$$P d$'\'' [0m[31m\e[1m,[37m[0m\e[1m $$P | |
$$: $$. [0m[31m\e[1m-[37m[0m\e[1m ,d$$'\'' | |
$$; Y$b._ _,d$P'\'' | |
Y$$. [0m[31m\e[1m`.[37m[0m\e[1m`"Y$$$$P"'\'' | |
[37m[0m\e[1m `$$b [0m[31m\e[1m"-.__ | |
[37m[0m\e[1m `Y$$ | |
`Y$$. | |
`$$b. | |
`Y$$b. | |
`"Y$b._ | |
`"""' | |
+ (( text_padding=ascii_len+gap )) | |
+ printf '%b\n' '[37m[0m\e[1m _,met$$$$$gg. | |
,g$$$$$$$$$$$$$$$P. | |
,g$$P" """Y$$.". | |
,$$P'\'' `$$$. | |
'\'',$$P ,ggs. `$$b: | |
`d$$'\'' ,$P"'\'' [0m[31m\e[1m.[37m[0m\e[1m $$$ | |
$$P d$'\'' [0m[31m\e[1m,[37m[0m\e[1m $$P | |
$$: $$. [0m[31m\e[1m-[37m[0m\e[1m ,d$$'\'' | |
$$; Y$b._ _,d$P'\'' | |
Y$$. [0m[31m\e[1m`.[37m[0m\e[1m`"Y$$$$P"'\'' | |
[37m[0m\e[1m `$$b [0m[31m\e[1m"-.__ | |
[37m[0m\e[1m `Y$$ | |
`Y$$. | |
`$$b. | |
`Y$$b. | |
`"Y$b._ | |
`"""\e[0m' | |
+ LC_ALL=C | |
+ return | |
+ printf '\e[%sA\e[9999999D' 17 | |
+ err 'Image: Check the '\''Images in the terminal'\'' wiki page for more info,' | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ err+='[0m[31m[!]\e[0m Image: Check the '\''Images in the terminal'\'' wiki page for more info, | |
' | |
+ return | |
+ get_cache_dir | |
+ case $os in | |
+ cache_dir=/tmp | |
+ old_functions | |
+ print_info | |
+ info title | |
+ [[ -n '' ]] | |
+ unset -v prin | |
+ get_title | |
+ user=ayush | |
+ case $title_fqdn in | |
+ hostname=Mongoose | |
+ title='[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
+ length=14 | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
++ trim '[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
++ set -f | |
++ set -- '[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
++ printf '%s\n' '[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
++ set +f | |
+ output='[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
+ [[ -n '' ]] | |
+ [[ -n [0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose ]] | |
+ prin '[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
++ trim '[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
++ set -f | |
++ set -- '[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
++ printf '%s\n' '[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
++ set +f | |
+ [[ -n [0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose ]] | |
+ [[ -n '' ]] | |
+ string='[0m[31m\e[1mayush\e[0m@[0m[31m\e[1mMongoose' | |
+ local 'subtitle_color=\e[0m' | |
++ trim '[31m\e[1mayush\e[0m@[31m\e[1mMongoose' | |
++ set -f | |
++ set -- '[31m\e[1mayush\e[0m@[31m\e[1mMongoose' | |
++ printf '%s\n' '[31m\e[1mayush\e[0m@[31m\e[1mMongoose' | |
++ set +f | |
+ string='[31m\e[1mayush\e[0m@[31m\e[1mMongoose' | |
++ strip_sequences '[31m\e[1mayush\e[0m@[31m\e[1mMongoose' | |
++ strip='\e[1mayush\e[0m@\e[1mMongoose' | |
++ strip='\e[1mayush\e[0m@\e[1mMongoose' | |
++ strip=ayush@Mongoose | |
++ strip=ayush@Mongoose | |
++ strip=ayush@Mongoose | |
++ strip=ayush@Mongoose | |
++ printf '%s\n' ayush@Mongoose | |
+ length=ayush@Mongoose | |
+ length=14 | |
+ string='[31m\e[1mayush\e[0m@[31m\e[1mMongoose' | |
+ string='\e[0m\e[1m[31m\e[1mayush\e[0m@[31m\e[1mMongoose' | |
+ printf '%b\n' '\e[30C\e[0m\e[1m[31m\e[1mayush\e[0m@[31m\e[1mMongoose\e[0m ' | |
+ (( ++info_height )) | |
+ prin=1 | |
+ unset -v subtitle | |
+ info underline | |
+ [[ -n '' ]] | |
+ unset -v prin | |
+ get_underline | |
+ [[ on == \o\n ]] | |
+ printf -v underline %14s | |
+ printf '%b%b\n' '\e[30C\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 Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64 ]] | |
+ return | |
+ [[ -n '' ]] | |
+ [[ -n distro ]] | |
++ trim 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set -f | |
++ set -- Debian GNU/Linux 12 '(bookworm)' on Windows 10.0.22631 x86_64 | |
++ printf '%s\n' 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set +f | |
+ output='Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
+ [[ -n distro ]] | |
+ [[ -n DebianGNU/Linux12(bookworm)onWindows10.0.22631x86_64 ]] | |
+ prin OS 'Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ trim OS | |
++ set -f | |
++ set -- OS | |
++ printf '%s\n' OS | |
++ set +f | |
+ [[ -n OS ]] | |
+ [[ -n Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64 ]] | |
+ [[ -n '' ]] | |
+ string='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ trim 'OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set -f | |
++ set -- OS: Debian GNU/Linux 12 '(bookworm)' on Windows 10.0.22631 x86_64 | |
++ printf '%s\n' 'OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ set +f | |
+ string='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ strip_sequences 'OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ strip='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ strip='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ strip='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ strip='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ strip='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ strip='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
++ printf '%s\n' 'OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
+ length='OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
+ length=63 | |
+ string='OS\e[0m\e[0m:\e[0m Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
+ string='[0m[31m\e[1mOS\e[0m\e[0m:\e[0m Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 x86_64' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mOS\e[0m\e[0m:\e[0m Debian GNU/Linux 12 (bookworm) on Windows 10.0.22631 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/board_vendor ]] | |
+ [[ -f /sys/devices/virtual/dmi/id/board_name ]] | |
+ [[ -f /sys/devices/virtual/dmi/id/product_name ]] | |
+ [[ -f /sys/devices/virtual/dmi/id/product_version ]] | |
+ [[ -f /sys/firmware/devicetree/base/model ]] | |
+ [[ -f /tmp/sysinfo/model ]] | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ model= | |
+ case $model in | |
+ [[ -n '' ]] | |
+ [[ -n model ]] | |
++ trim '' | |
++ set -f | |
++ set -- | |
++ printf '%s\n' '' | |
++ set +f | |
+ output= | |
+ [[ -n model ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ err 'Info: Couldn'\''t detect Host.' | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ err+='[0m[31m[!]\e[0m Info: Couldn'\''t detect Host. | |
' | |
+ 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.15.133.1-microsoft-standard-WSL2 | |
+ [[ Linux =~ (BSD|MINIX) ]] | |
+ [[ -n '' ]] | |
+ [[ -n kernel ]] | |
++ trim 5.15.133.1-microsoft-standard-WSL2 | |
++ set -f | |
++ set -- 5.15.133.1-microsoft-standard-WSL2 | |
++ printf '%s\n' 5.15.133.1-microsoft-standard-WSL2 | |
++ set +f | |
+ output=5.15.133.1-microsoft-standard-WSL2 | |
+ [[ -n kernel ]] | |
+ [[ -n 5.15.133.1-microsoft-standard-WSL2 ]] | |
+ prin Kernel 5.15.133.1-microsoft-standard-WSL2 | |
++ trim Kernel | |
++ set -f | |
++ set -- Kernel | |
++ printf '%s\n' Kernel | |
++ set +f | |
+ [[ -n Kernel ]] | |
+ [[ -n 5.15.133.1-microsoft-standard-WSL2 ]] | |
+ [[ -n '' ]] | |
+ string='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ trim 'Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ set -f | |
++ set -- Kernel: 5.15.133.1-microsoft-standard-WSL2 | |
++ printf '%s\n' 'Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ set +f | |
+ string='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ strip_sequences 'Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ strip='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ strip='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ strip='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ strip='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ strip='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ strip='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
++ printf '%s\n' 'Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
+ length='Kernel: 5.15.133.1-microsoft-standard-WSL2' | |
+ length=42 | |
+ string='Kernel\e[0m\e[0m:\e[0m 5.15.133.1-microsoft-standard-WSL2' | |
+ string='[0m[31m\e[1mKernel\e[0m\e[0m:\e[0m 5.15.133.1-microsoft-standard-WSL2' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mKernel\e[0m\e[0m:\e[0m 5.15.133.1-microsoft-standard-WSL2\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='14385.78 230090.63' | |
+ s=14385 | |
+ d='0 days' | |
+ h='3 hours' | |
+ m='59 minutes' | |
+ (( 0 == 1 )) | |
+ (( 3 == 1 )) | |
+ (( 59 == 1 )) | |
+ (( 0 == 0 )) | |
+ unset d | |
+ (( 3 == 0 )) | |
+ (( 59 == 0 )) | |
+ uptime='3 hours, 59 minutes' | |
+ uptime='3 hours, 59 minutes' | |
+ uptime='3 hours, 59 minutes' | |
+ case $uptime_shorthand in | |
+ uptime='3 hours, 59 mins' | |
+ uptime='3 hours, 59 mins' | |
+ uptime='3 hours, 59 mins' | |
+ [[ -n '' ]] | |
+ [[ -n uptime ]] | |
++ trim '3 hours, 59 mins' | |
++ set -f | |
++ set -- 3 hours, 59 mins | |
++ printf '%s\n' '3 hours, 59 mins' | |
++ set +f | |
+ output='3 hours, 59 mins' | |
+ [[ -n uptime ]] | |
+ [[ -n 3hours,59mins ]] | |
+ prin Uptime '3 hours, 59 mins' | |
++ trim Uptime | |
++ set -f | |
++ set -- Uptime | |
++ printf '%s\n' Uptime | |
++ set +f | |
+ [[ -n Uptime ]] | |
+ [[ -n 3 hours, 59 mins ]] | |
+ [[ -n '' ]] | |
+ string='Uptime: 3 hours, 59 mins' | |
++ trim 'Uptime: 3 hours, 59 mins' | |
++ set -f | |
++ set -- Uptime: 3 hours, 59 mins | |
++ printf '%s\n' 'Uptime: 3 hours, 59 mins' | |
++ set +f | |
+ string='Uptime: 3 hours, 59 mins' | |
++ strip_sequences 'Uptime: 3 hours, 59 mins' | |
++ strip='Uptime: 3 hours, 59 mins' | |
++ strip='Uptime: 3 hours, 59 mins' | |
++ strip='Uptime: 3 hours, 59 mins' | |
++ strip='Uptime: 3 hours, 59 mins' | |
++ strip='Uptime: 3 hours, 59 mins' | |
++ strip='Uptime: 3 hours, 59 mins' | |
++ printf '%s\n' 'Uptime: 3 hours, 59 mins' | |
+ length='Uptime: 3 hours, 59 mins' | |
+ length=24 | |
+ string='Uptime\e[0m\e[0m:\e[0m 3 hours, 59 mins' | |
+ string='[0m[31m\e[1mUptime\e[0m\e[0m:\e[0m 3 hours, 59 mins' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mUptime\e[0m\e[0m:\e[0m 3 hours, 59 mins\e[0m ' | |
+ (( ++info_height )) | |
+ prin=1 | |
+ unset -v subtitle | |
+ info Packages packages | |
+ [[ -n packages ]] | |
+ subtitle=Packages | |
+ unset -v prin | |
+ get_packages | |
+ pkgs_h=0 | |
+ [[ -f /bedrock/etc/bedrock-release ]] | |
+ case $os in | |
+ has kiss | |
+ type -p kiss | |
+ has cpt-list | |
+ type -p cpt-list | |
+ has pacman-key | |
+ type -p pacman-key | |
+ has dpkg | |
+ type -p dpkg | |
+ manager=dpkg | |
+ tot dpkg-query -f '.\n' -W | |
+ IFS=' | |
' | |
+ read -d '' -ra pkgs | |
++ dpkg-query -f '.\n' -W | |
+ (( packages+=762 )) | |
+ pac 762 | |
+ (( 762 > 0 )) | |
+ managers+=("$1 (${manager})") | |
+ manager_string+='dpkg, ' | |
+ 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 pkgin | |
+ type -p pkgin | |
+ has tazpkg | |
+ type -p tazpkg | |
+ has sorcery | |
+ type -p sorcery | |
+ has alps | |
+ type -p alps | |
+ has butch | |
+ type -p butch | |
+ has swupd | |
+ type -p swupd | |
+ has pisi | |
+ type -p pisi | |
+ has pacstall | |
+ type -p pacstall | |
+ has dnf | |
+ type -p dnf | |
+ has rpm | |
+ type -p rpm | |
+ [[ -f /etc/SDE-VERSION ]] | |
+ 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 $os-$kernel_name in | |
+ 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, ' '762 (dpkg)' | |
+ packages='762 (dpkg)' | |
+ packages='762 (dpkg)' | |
+ [[ -n '' ]] | |
+ [[ -n packages ]] | |
++ trim '762 (dpkg)' | |
++ set -f | |
++ set -- 762 '(dpkg)' | |
++ printf '%s\n' '762 (dpkg)' | |
++ set +f | |
+ output='762 (dpkg)' | |
+ [[ -n packages ]] | |
+ [[ -n 762(dpkg) ]] | |
+ prin Packages '762 (dpkg)' | |
++ trim Packages | |
++ set -f | |
++ set -- Packages | |
++ printf '%s\n' Packages | |
++ set +f | |
+ [[ -n Packages ]] | |
+ [[ -n 762 (dpkg) ]] | |
+ [[ -n '' ]] | |
+ string='Packages: 762 (dpkg)' | |
++ trim 'Packages: 762 (dpkg)' | |
++ set -f | |
++ set -- Packages: 762 '(dpkg)' | |
++ printf '%s\n' 'Packages: 762 (dpkg)' | |
++ set +f | |
+ string='Packages: 762 (dpkg)' | |
++ strip_sequences 'Packages: 762 (dpkg)' | |
++ strip='Packages: 762 (dpkg)' | |
++ strip='Packages: 762 (dpkg)' | |
++ strip='Packages: 762 (dpkg)' | |
++ strip='Packages: 762 (dpkg)' | |
++ strip='Packages: 762 (dpkg)' | |
++ strip='Packages: 762 (dpkg)' | |
++ printf '%s\n' 'Packages: 762 (dpkg)' | |
+ length='Packages: 762 (dpkg)' | |
+ length=20 | |
+ string='Packages\e[0m\e[0m:\e[0m 762 (dpkg)' | |
+ string='[0m[31m\e[1mPackages\e[0m\e[0m:\e[0m 762 (dpkg)' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mPackages\e[0m\e[0m:\e[0m 762 (dpkg)\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.9 (x86_64-debian-linux-gnu)' | |
+ shell='zsh 5.9 (x86_64-debian-linux-gnu)' | |
+ shell='zsh 5.9 (x86_64-debian-linux-gnu)' | |
+ shell='zsh 5.9 (x86_64-debian-linux-gnu)' | |
+ shell='zsh 5.9 (x86_64-debian-linux-gnu)' | |
+ shell='zsh 5.9 ' | |
+ [[ -n '' ]] | |
+ [[ -n shell ]] | |
++ trim 'zsh 5.9 ' | |
++ set -f | |
++ set -- zsh 5.9 | |
++ printf '%s\n' 'zsh 5.9' | |
++ set +f | |
+ output='zsh 5.9' | |
+ [[ -n shell ]] | |
+ [[ -n zsh5.9 ]] | |
+ prin Shell 'zsh 5.9' | |
++ trim Shell | |
++ set -f | |
++ set -- Shell | |
++ printf '%s\n' Shell | |
++ set +f | |
+ [[ -n Shell ]] | |
+ [[ -n zsh 5.9 ]] | |
+ [[ -n '' ]] | |
+ string='Shell: zsh 5.9' | |
++ trim 'Shell: zsh 5.9' | |
++ set -f | |
++ set -- Shell: zsh 5.9 | |
++ printf '%s\n' 'Shell: zsh 5.9' | |
++ set +f | |
+ string='Shell: zsh 5.9' | |
++ strip_sequences 'Shell: zsh 5.9' | |
++ strip='Shell: zsh 5.9' | |
++ strip='Shell: zsh 5.9' | |
++ strip='Shell: zsh 5.9' | |
++ strip='Shell: zsh 5.9' | |
++ strip='Shell: zsh 5.9' | |
++ strip='Shell: zsh 5.9' | |
++ printf '%s\n' 'Shell: zsh 5.9' | |
+ length='Shell: zsh 5.9' | |
+ length=14 | |
+ string='Shell\e[0m\e[0m:\e[0m zsh 5.9' | |
+ string='[0m[31m\e[1mShell\e[0m\e[0m:\e[0m zsh 5.9' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mShell\e[0m\e[0m:\e[0m zsh 5.9\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 | |
+ [[ -n :0 ]] | |
+ [[ -z wayland-0 ]] | |
+ type -p xwininfo | |
+ [[ -n :0 ]] | |
+ [[ -z wayland-0 ]] | |
+ type -p xdpyinfo | |
+ [[ -n :0 ]] | |
+ [[ -z wayland-0 ]] | |
+ [[ -d /sys/class/drm ]] | |
+ for dev in /sys/class/drm/*/modes | |
+ read -r single_resolution _ | |
/usr/bin/neofetch: line 3111: /sys/class/drm/*/modes: No such file or directory | |
+ [[ -n '' ]] | |
+ resolution= | |
+ resolution= | |
+ [[ -z '' ]] | |
+ resolution= | |
+ [[ -n '' ]] | |
+ [[ -n resolution ]] | |
++ trim '' | |
++ set -f | |
++ set -- | |
++ printf '%s\n' '' | |
++ set +f | |
+ output= | |
+ [[ -n resolution ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ err 'Info: Couldn'\''t detect Resolution.' | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ err+='[0m[31m[!]\e[0m Info: Couldn'\''t detect Resolution. | |
' | |
+ 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) | |
+ [[ -O /run/user/1000//wayland-0 ]] | |
++ lsof -t /run/user/1000//wayland-0 | |
+ tmp_pid='/usr/bin/neofetch: line 1902: lsof: command not found' | |
++ fuser /run/user/1000//wayland-0 | |
+ tmp_pid='/usr/bin/neofetch: line 1903: fuser: command not found' | |
++ ps -e | |
++ grep -m 1 -o -F -e arcan -e asc -e clayland -e dwc -e fireplace -e gnome-shell -e greenfield -e grefsen -e hikari -e kwin -e lipstick -e maynard -e mazecompositor -e motorcar -e orbital -e orbment -e perceptia -e river -e rustland -e sway -e ulubis -e velox -e wavy -e way-cooler -e wayfire -e wayhouse -e westeros -e westford -e weston | |
+ wm= | |
+ [[ '' == *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+='[0m[31m[!]\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+='[0m[31m[!]\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+='[0m[31m[!]\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 :0 ]] | |
+ [[ Linux != \M\a\c\ \O\S\ \X ]] | |
+ [[ Linux != \m\a\c\O\S ]] | |
+ (( de_run != 1 )) | |
+ get_de | |
+ (( de_run == 1 )) | |
+ case $os in | |
+ (( wm_run != 1 )) | |
+ [[ '' == *regolith ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ '' == '' ]] | |
+ unset -v de | |
+ return | |
+ [[ on == on ]] | |
+ de= | |
+ case $de in | |
+ [[ -z '' ]] | |
+ [[ -n '' ]] | |
+ [[ -f /home/ayush/.gtkrc-2.0 ]] | |
+ [[ -f /etc/gtk-2.0/gtkrc ]] | |
+ [[ -f /usr/share/gtk-2.0/gtkrc ]] | |
+ gtk2_theme= | |
+ [[ -z '' ]] | |
+ [[ -f /home/ayush/.config/gtk-3.0/settings.ini ]] | |
+ type -p gsettings | |
+ [[ -f /etc/gtk-3.0/settings.ini ]] | |
+ [[ -f /usr/share/gtk-3.0/settings.ini ]] | |
+ gtk3_theme= | |
++ trim '' | |
++ set -f | |
++ set -- | |
++ printf '%s\n' '' | |
++ set +f | |
+ gtk2_theme= | |
++ trim '' | |
++ set -f | |
++ set -- | |
++ printf '%s\n' '' | |
++ set +f | |
+ gtk3_theme= | |
++ trim_quotes '' | |
++ trim_output= | |
++ trim_output= | |
++ printf %s '' | |
+ gtk2_theme= | |
++ trim_quotes '' | |
++ trim_output= | |
++ trim_output= | |
++ printf %s '' | |
+ gtk3_theme= | |
+ [[ on == \o\f\f ]] | |
+ [[ on == \o\f\f ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ theme= | |
+ theme= | |
+ [[ off == \o\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+='[0m[31m[!]\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 :0 ]] | |
+ [[ Linux != \M\a\c\ \O\S\ \X ]] | |
+ [[ Linux != \m\a\c\O\S ]] | |
+ (( de_run != 1 )) | |
+ get_de | |
+ (( de_run == 1 )) | |
+ case $os in | |
+ (( wm_run != 1 )) | |
+ [[ '' == *regolith ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ '' == '' ]] | |
+ unset -v de | |
+ return | |
+ [[ on == on ]] | |
+ de= | |
+ case $de in | |
+ [[ -z '' ]] | |
+ [[ -n '' ]] | |
+ [[ -f /home/ayush/.gtkrc-2.0 ]] | |
+ [[ -f /etc/gtk-2.0/gtkrc ]] | |
+ [[ -f /usr/share/gtk-2.0/gtkrc ]] | |
+ gtk2_theme= | |
+ [[ -z '' ]] | |
+ [[ -f /home/ayush/.config/gtk-3.0/settings.ini ]] | |
+ type -p gsettings | |
+ [[ -f /etc/gtk-3.0/settings.ini ]] | |
+ [[ -f /usr/share/gtk-3.0/settings.ini ]] | |
+ gtk3_theme= | |
++ trim '' | |
++ set -f | |
++ set -- | |
++ printf '%s\n' '' | |
++ set +f | |
+ gtk2_theme= | |
++ trim '' | |
++ set -f | |
++ set -- | |
++ printf '%s\n' '' | |
++ set +f | |
+ gtk3_theme= | |
++ trim_quotes '' | |
++ trim_output= | |
++ trim_output= | |
++ printf %s '' | |
+ gtk2_theme= | |
++ trim_quotes '' | |
++ trim_output= | |
++ trim_output= | |
++ printf %s '' | |
+ gtk3_theme= | |
+ [[ on == \o\f\f ]] | |
+ [[ on == \o\f\f ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ [[ -n '' ]] | |
+ theme= | |
+ theme= | |
+ [[ off == \o\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+='[0m[31m[!]\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 '' ]] | |
+ [[ -n 6b1fc0b4-0c5a-4555-b4d5-c1739eaac544 ]] | |
+ term='Windows Terminal' | |
+ [[ -z Windows Terminal ]] | |
+ term_run=1 | |
+ [[ -n '' ]] | |
+ [[ -n term ]] | |
++ trim 'Windows Terminal' | |
++ set -f | |
++ set -- Windows Terminal | |
++ printf '%s\n' 'Windows Terminal' | |
++ set +f | |
+ output='Windows Terminal' | |
+ [[ -n term ]] | |
+ [[ -n WindowsTerminal ]] | |
+ prin Terminal 'Windows Terminal' | |
++ trim Terminal | |
++ set -f | |
++ set -- Terminal | |
++ printf '%s\n' Terminal | |
++ set +f | |
+ [[ -n Terminal ]] | |
+ [[ -n Windows Terminal ]] | |
+ [[ -n '' ]] | |
+ string='Terminal: Windows Terminal' | |
++ trim 'Terminal: Windows Terminal' | |
++ set -f | |
++ set -- Terminal: Windows Terminal | |
++ printf '%s\n' 'Terminal: Windows Terminal' | |
++ set +f | |
+ string='Terminal: Windows Terminal' | |
++ strip_sequences 'Terminal: Windows Terminal' | |
++ strip='Terminal: Windows Terminal' | |
++ strip='Terminal: Windows Terminal' | |
++ strip='Terminal: Windows Terminal' | |
++ strip='Terminal: Windows Terminal' | |
++ strip='Terminal: Windows Terminal' | |
++ strip='Terminal: Windows Terminal' | |
++ printf '%s\n' 'Terminal: Windows Terminal' | |
+ length='Terminal: Windows Terminal' | |
+ length=26 | |
+ string='Terminal\e[0m\e[0m:\e[0m Windows Terminal' | |
+ string='[0m[31m\e[1mTerminal\e[0m\e[0m:\e[0m Windows Terminal' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mTerminal\e[0m\e[0m:\e[0m Windows Terminal\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+='[0m[31m[!]\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='AMD Ryzen 7 5800X 8-Core Processor' | |
+ speed_dir=/sys/devices/system/cpu/cpu0/cpufreq | |
+ for temp_dir in /sys/class/hwmon/* | |
/usr/bin/neofetch: line 2220: /sys/class/hwmon/*/name: No such file or directory | |
+ [[ '' =~ (cpu_thermal|coretemp|fam15h_power|k10temp) ]] | |
+ [[ -d /sys/devices/system/cpu/cpu0/cpufreq ]] | |
+ case $kernel_machine in | |
++ awk -F ': |\\.' '/cpu MHz|^clock/ {printf $2; exit}' /proc/cpuinfo | |
+ speed=4200 | |
+ speed=4200 | |
+ [[ -f /sys/class/hwmon/* ]] | |
+ case $kernel_machine in | |
+ case $cpu_cores in | |
++ grep -c '^processor' /proc/cpuinfo | |
+ cores=16 | |
+ cpu='AMD Ryzen 7 5800X 8-Core Processor' | |
+ cpu='AMD Ryzen 7 5800X 8-Core Processor' | |
+ cpu='AMD Ryzen 7 5800X 8-Core Processor' | |
+ cpu='AMD Ryzen 7 5800X 8-Core Processor' | |
+ cpu='AMD Ryzen 7 5800X 8-Core Processor' | |
+ cpu='AMD Ryzen 7 5800X 8-Core ' | |
+ cpu='AMD Ryzen 7 5800X 8-Core ' | |
+ cpu='AMD Ryzen 7 5800X 8-Core ' | |
+ cpu='AMD Ryzen 7 5800X 8-Core ' | |
+ cpu='AMD Ryzen 7 5800X 8-Core ' | |
+ cpu='AMD Ryzen 7 5800X 8-Core ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cpu='AMD Ryzen 7 5800X ' | |
+ cores=16 | |
+ speed=4200 | |
+ [[ on == \o\f\f ]] | |
+ [[ logical != \o\f\f ]] | |
+ [[ -n 16 ]] | |
+ case $os in | |
+ cpu='AMD Ryzen 7 5800X (16)' | |
+ [[ on != \o\f\f ]] | |
+ [[ -n 4200 ]] | |
+ (( speed < 1000 )) | |
+ [[ off == \o\n ]] | |
+ speed=4.200 | |
+ cpu='AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
+ [[ off != \o\f\f ]] | |
+ [[ -n '' ]] | |
+ [[ -n cpu ]] | |
++ trim 'AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ set -f | |
++ set -- AMD Ryzen 7 5800X '(16)' @ 4.200GHz | |
++ printf '%s\n' 'AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ set +f | |
+ output='AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
+ [[ -n cpu ]] | |
+ [[ -n AMDRyzen75800X(16)@4.200GHz ]] | |
+ prin CPU 'AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ trim CPU | |
++ set -f | |
++ set -- CPU | |
++ printf '%s\n' CPU | |
++ set +f | |
+ [[ -n CPU ]] | |
+ [[ -n AMD Ryzen 7 5800X (16) @ 4.200GHz ]] | |
+ [[ -n '' ]] | |
+ string='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ trim 'CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ set -f | |
++ set -- CPU: AMD Ryzen 7 5800X '(16)' @ 4.200GHz | |
++ printf '%s\n' 'CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ set +f | |
+ string='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ strip_sequences 'CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ strip='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ strip='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ strip='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ strip='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ strip='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ strip='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
++ printf '%s\n' 'CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
+ length='CPU: AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
+ length=38 | |
+ string='CPU\e[0m\e[0m:\e[0m AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
+ string='[0m[31m\e[1mCPU\e[0m\e[0m:\e[0m AMD Ryzen 7 5800X (16) @ 4.200GHz' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mCPU\e[0m\e[0m:\e[0m AMD Ryzen 7 5800X (16) @ 4.200GHz\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 " " ($(NF-1) ~ /^$|^Device [[:xdigit:]]+$/ ? $4 : $(NF-1)) | |
} | |
END { for (i in a) { | |
if (!seen[a[i]]++) { | |
sub("^[^ ]+ ", "", a[i]); | |
print a[i] | |
} | |
}}' | |
+ gpu_cmd=' Microsoft Corporation Basic Render Driver' | |
+ IFS=' | |
' | |
+ read -d '' -ra gpus | |
+ [[ Microsoft Corporation Basic Render Driver == *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 | |
+ continue | |
+ return | |
+ [[ -n '' ]] | |
+ [[ -n gpu ]] | |
++ trim ' Microsoft Corporation Basic Render Driver' | |
++ set -f | |
++ set -- Microsoft Corporation Basic Render Driver | |
++ printf '%s\n' 'Microsoft Corporation Basic Render Driver' | |
++ set +f | |
+ output='Microsoft Corporation Basic Render Driver' | |
+ [[ -n gpu ]] | |
+ [[ -n MicrosoftCorporationBasicRenderDriver ]] | |
+ prin GPU 'Microsoft Corporation Basic Render Driver' | |
++ trim GPU | |
++ set -f | |
++ set -- GPU | |
++ printf '%s\n' GPU | |
++ set +f | |
+ [[ -n GPU ]] | |
+ [[ -n Microsoft Corporation Basic Render Driver ]] | |
+ [[ -n '' ]] | |
+ string='GPU: Microsoft Corporation Basic Render Driver' | |
++ trim 'GPU: Microsoft Corporation Basic Render Driver' | |
++ set -f | |
++ set -- GPU: Microsoft Corporation Basic Render Driver | |
++ printf '%s\n' 'GPU: Microsoft Corporation Basic Render Driver' | |
++ set +f | |
+ string='GPU: Microsoft Corporation Basic Render Driver' | |
++ strip_sequences 'GPU: Microsoft Corporation Basic Render Driver' | |
++ strip='GPU: Microsoft Corporation Basic Render Driver' | |
++ strip='GPU: Microsoft Corporation Basic Render Driver' | |
++ strip='GPU: Microsoft Corporation Basic Render Driver' | |
++ strip='GPU: Microsoft Corporation Basic Render Driver' | |
++ strip='GPU: Microsoft Corporation Basic Render Driver' | |
++ strip='GPU: Microsoft Corporation Basic Render Driver' | |
++ printf '%s\n' 'GPU: Microsoft Corporation Basic Render Driver' | |
+ length='GPU: Microsoft Corporation Basic Render Driver' | |
+ length=46 | |
+ string='GPU\e[0m\e[0m:\e[0m Microsoft Corporation Basic Render Driver' | |
+ string='[0m[31m\e[1mGPU\e[0m\e[0m:\e[0m Microsoft Corporation Basic Render Driver' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mGPU\e[0m\e[0m:\e[0m Microsoft Corporation Basic Render Driver\e[0m ' | |
+ (( ++info_height )) | |
+ prin=1 | |
+ unset -v subtitle | |
+ 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+= 16335172 )) | |
+ mem_total=' 16335172 ' | |
+ IFS=: | |
+ read -r a b | |
+ case $a in | |
+ mem_used=1529444 | |
+ IFS=: | |
+ read -r a b | |
+ case $a in | |
+ mem_avail=' 15619688 ' | |
+ IFS=: | |
+ read -r a b | |
+ case $a in | |
+ mem_used=1372396 | |
+ IFS=: | |
+ read -r a b | |
+ case $a in | |
+ mem_used=496836 | |
+ 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+= 3748 )) | |
+ 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=433884 | |
+ 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 | |
+ [[ -n 15619688 ]] | |
+ mem_used=698 | |
+ mem_total=15952 | |
+ [[ off == \o\n ]] | |
+ case $memory_unit in | |
+ memory='698MiB / 15952MiB ' | |
+ case $memory_display in | |
+ [[ -n '' ]] | |
+ [[ -n memory ]] | |
++ trim '698MiB / 15952MiB ' | |
++ set -f | |
++ set -- 698MiB / 15952MiB | |
++ printf '%s\n' '698MiB / 15952MiB' | |
++ set +f | |
+ output='698MiB / 15952MiB' | |
+ [[ -n memory ]] | |
+ [[ -n 698MiB/15952MiB ]] | |
+ prin Memory '698MiB / 15952MiB' | |
++ trim Memory | |
++ set -f | |
++ set -- Memory | |
++ printf '%s\n' Memory | |
++ set +f | |
+ [[ -n Memory ]] | |
+ [[ -n 698MiB / 15952MiB ]] | |
+ [[ -n '' ]] | |
+ string='Memory: 698MiB / 15952MiB' | |
++ trim 'Memory: 698MiB / 15952MiB' | |
++ set -f | |
++ set -- Memory: 698MiB / 15952MiB | |
++ printf '%s\n' 'Memory: 698MiB / 15952MiB' | |
++ set +f | |
+ string='Memory: 698MiB / 15952MiB' | |
++ strip_sequences 'Memory: 698MiB / 15952MiB' | |
++ strip='Memory: 698MiB / 15952MiB' | |
++ strip='Memory: 698MiB / 15952MiB' | |
++ strip='Memory: 698MiB / 15952MiB' | |
++ strip='Memory: 698MiB / 15952MiB' | |
++ strip='Memory: 698MiB / 15952MiB' | |
++ strip='Memory: 698MiB / 15952MiB' | |
++ printf '%s\n' 'Memory: 698MiB / 15952MiB' | |
+ length='Memory: 698MiB / 15952MiB' | |
+ length=25 | |
+ string='Memory\e[0m\e[0m:\e[0m 698MiB / 15952MiB' | |
+ string='[0m[31m\e[1mMemory\e[0m\e[0m:\e[0m 698MiB / 15952MiB' | |
+ printf '%b\n' '\e[30C[0m[31m\e[1mMemory\e[0m\e[0m:\e[0m 698MiB / 15952MiB\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' '[30m[40m ' 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' '[30m[40m [31m[41m ' 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' '[30m[40m [31m[41m [32m[42m ' 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' '[30m[40m [31m[41m [32m[42m [33m[43m ' 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' '[30m[40m [31m[41m [32m[42m [33m[43m [34m[44m ' 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' '[30m[40m [31m[41m [32m[42m [33m[43m [34m[44m [35m[45m ' 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' '[30m[40m [31m[41m [32m[42m [33m[43m [34m[44m [35m[45m [36m[46m ' 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' '[38;5;8m[48;5;8m ' 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' '[38;5;8m[48;5;8m [38;5;9m[48;5;9m ' 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' '[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m ' 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' '[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m ' 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' '[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m [38;5;12m[48;5;12m ' 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' '[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m [38;5;12m[48;5;12m [38;5;13m[48;5;13m ' 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' '[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m [38;5;12m[48;5;12m [38;5;13m[48;5;13m [38;5;14m[48;5;14m ' 15 15 ' ' | |
+ (( block_range[0]++ )) | |
+ (( block_range[0]<=block_range[1] )) | |
+ printf -v block_spaces %1s | |
+ [[ -n [30m[40m [31m[41m [32m[42m [33m[43m [34m[44m [35m[45m [36m[46m [37m[47m ]] | |
+ cols+='[30m[40m [31m[41m [32m[42m [33m[43m [34m[44m [35m[45m [36m[46m [37m[47m [mnl' | |
+ [[ -n [38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m [38;5;12m[48;5;12m [38;5;13m[48;5;13m [38;5;14m[48;5;14m [38;5;15m[48;5;15m ]] | |
+ cols+='[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m [38;5;12m[48;5;12m [38;5;13m[48;5;13m [38;5;14m[48;5;14m [38;5;15m[48;5;15m [mnl' | |
+ cols='[30m[40m [31m[41m [32m[42m [33m[43m [34m[44m [35m[45m [36m[46m [37m[47m [mnl[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m [38;5;12m[48;5;12m [38;5;13m[48;5;13m [38;5;14m[48;5;14m [38;5;15m[48;5;15m [m' | |
+ cols='[30m[40m [31m[41m [32m[42m [33m[43m [34m[44m [35m[45m [36m[46m [37m[47m [m | |
[30C[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m [38;5;12m[48;5;12m [38;5;13m[48;5;13m [38;5;14m[48;5;14m [38;5;15m[48;5;15m [m' | |
+ (( info_height+=block_range[1]>7?block_height+2:block_height+1 )) | |
+ case $col_offset in | |
+ printf '\n\e[%bC%b\n' 30 '[30m[40m [31m[41m [32m[42m [33m[43m [34m[44m [35m[45m [36m[46m [37m[47m [m | |
[30C[38;5;8m[48;5;8m [38;5;9m[48;5;9m [38;5;10m[48;5;10m [38;5;11m[48;5;11m [38;5;12m[48;5;12m [38;5;13m[48;5;13m [38;5;14m[48;5;14m [38;5;15m[48;5;15m [m' | |
+ 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 %4s | |
+ printf %b '\n\n\n\n' | |
+ [[ ascii == *w3m* ]] | |
+ [[ ascii == *ueberzug* ]] | |
+ err 'Neofetch command: /usr/bin/neofetch -vv' | |
++ color 1 | |
++ case $1 in | |
++ printf '%b\e[3%sm' '\e[0m' 1 | |
+ err+='[0m[31m[!]\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+='[0m[31m[!]\e[0m Neofetch version: 7.1.0 | |
' | |
+ [[ on == on ]] | |
+ printf '%b\033[m' '[0m[31m[!]\e[0m Config: Sourced user config. (/home/ayush/.config/neofetch/config.conf) | |
[0m[31m[!]\e[0m Image: Using image '\''/home/ayush/images/debian_media/debian-logo.png'\'' | |
[0m[31m[!]\e[0m Image: Failed to find terminal window size. | |
[0m[31m[!]\e[0m Image: Check the '\''Images in the terminal'\'' wiki page for more info, | |
[0m[31m[!]\e[0m Info: Couldn'\''t detect Host. | |
[0m[31m[!]\e[0m Info: Couldn'\''t detect Resolution. | |
[0m[31m[!]\e[0m Info: Couldn'\''t detect DE. | |
[0m[31m[!]\e[0m Info: Couldn'\''t detect WM. | |
[0m[31m[!]\e[0m Info: Couldn'\''t detect WM Theme. | |
[0m[31m[!]\e[0m Info: Couldn'\''t detect Theme. | |
[0m[31m[!]\e[0m Info: Couldn'\''t detect Icons. | |
[0m[31m[!]\e[0m Info: Couldn'\''t detect Terminal Font. | |
[0m[31m[!]\e[0m Neofetch command: /usr/bin/neofetch -vv | |
[0m[31m[!]\e[0m Neofetch version: 7.1.0 | |
' | |
[0m[31m[!][0m Config: Sourced user config. (/home/ayush/.config/neofetch/config.conf) | |
[0m[31m[!][0m Image: Using image '/home/ayush/images/debian_media/debian-logo.png' | |
[0m[31m[!][0m Image: Failed to find terminal window size. | |
[0m[31m[!][0m Image: Check the 'Images in the terminal' wiki page for more info, | |
[0m[31m[!][0m Info: Couldn't detect Host. | |
[0m[31m[!][0m Info: Couldn't detect Resolution. | |
[0m[31m[!][0m Info: Couldn't detect DE. | |
[0m[31m[!][0m Info: Couldn't detect WM. | |
[0m[31m[!][0m Info: Couldn't detect WM Theme. | |
[0m[31m[!][0m Info: Couldn't detect Theme. | |
[0m[31m[!][0m Info: Couldn't detect Icons. | |
[0m[31m[!][0m Info: Couldn't detect Terminal Font. | |
[0m[31m[!][0m Neofetch command: /usr/bin/neofetch -vv | |
[0m[31m[!][0m Neofetch version: 7.1.0 | |
[m+ [[ 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