From 325d6bff13fa32e7171f2689b4c172bcbc0d7e3a Mon Sep 17 00:00:00 2001 From: CapCreeperGR Date: Wed, 8 May 2024 11:21:13 +0300 Subject: [PATCH] Updated fetch script Added new ascii art for more linux distros --- README.md | 1 + config/ascii/opensuse | 18 ++++++++++++++++++ config/ascii/opensuse-tumbleweed | 13 +++++++++++++ config/ascii/tide | 17 +++++++++++++++++ config/ascii/ubuntu | 20 ++++++++++++++++++++ config/fetch_script_functions.sh | 10 +++++----- 6 files changed, 74 insertions(+), 5 deletions(-) create mode 100644 config/ascii/opensuse create mode 100644 config/ascii/opensuse-tumbleweed create mode 100644 config/ascii/tide create mode 100644 config/ascii/ubuntu diff --git a/README.md b/README.md index 1d4f802..3a3fd54 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Stormfetch is still in beta and distro compatibility is limited. If you would li ### Installation Guide - Download `go` from your package manager or from the go website - Download `make` from your package manager +- (Optional) Download `xorg-xhost` from your package manager to display DE/WM and monitor information - (Optional) Download `lshw` from your package manager to display GPU information - Run the following command to compile the project ``` diff --git a/config/ascii/opensuse b/config/ascii/opensuse new file mode 100644 index 0000000..d72d3c5 --- /dev/null +++ b/config/ascii/opensuse @@ -0,0 +1,18 @@ + .;ldkO0000Okdl;. + .;d00xl:^''''''^:ok00d;. + .d00l' 'o00d. + .d0Kd' Okxol:;,. :O0d. + .OKKKK0kOKKKKKKKKKKOxo:, lKO. + ,0KKKKKKKKKKKKKKKK0P^,,,^dx: ;00, +.OKKKKKKKKKKKKKKKKk'.oOPPb.'0k. cKO. +:KKKKKKKKKKKKKKKKK: kKx..dd lKd 'OK: +dKKKKKKKKKKKOx0KKKd ^0KKKO' kKKc dKd +dKKKKKKKKKKKK;.;oOKx,..^..;kKKK0. dKd +:KKKKKKKKKKKK0o;...^cdxxOK0O/^^' .0K: + kKKKKKKKKKKKKKKK0x;,,......,;od lKk + '0KKKKKKKKKKKKKKKKKKKKK00KKOo^ c00' + 'kKKKOxddxkOO00000Okxoc;'' .dKk' + l0Ko. .c00l' + 'l0Kk:. .;xK0l' + 'lkK0xl:;,,,,;:ldO0kl' + '^:ldxkkkkxdl:^' \ No newline at end of file diff --git a/config/ascii/opensuse-tumbleweed b/config/ascii/opensuse-tumbleweed new file mode 100644 index 0000000..fe0105d --- /dev/null +++ b/config/ascii/opensuse-tumbleweed @@ -0,0 +1,13 @@ + ...... + .,cdxxxoc,. .:kKMMMNWMMMNk:. + cKMMN0OOOKWMMXo. ; ;0MWk:. .:OMMk. + ;WMK;. .lKMMNM, :NMK, .OMW; + cMW; 'WMMMN ,XMK, oMM' +.MMc ..;l. xMN: KM0 +'MM. 'NMO oMM +.MM, .kMMl xMN + KM0 .kMM0. .dl:,.. .WMd + .XM0. ,OMMK, OMMMK. .XMK + oWMO:. .;xNMMk, NNNMKl. .xWMx + :ONMMNXMMMKx; . ,xNMWKkxllox0NMWk, + ..... .:dOOXXKOxl, \ No newline at end of file diff --git a/config/ascii/tide b/config/ascii/tide new file mode 100644 index 0000000..3f63fd4 --- /dev/null +++ b/config/ascii/tide @@ -0,0 +1,17 @@ + @@@@@@@@@ + @@@~~~~~~~~~@@ + @@~~~ ~~@ + @~~ @ + @~ @@@ @ + @@~ @ @@ + @@~~ @ + @@@~~ ~@@ @@@ + ~~~ ~~@@@ @@@@~~~ + ~~~@@@@~~~~ + @@@@ @@@@@@@ ~~~~ @@@@ + ~~~~@@@@ @@~~~~~~~@@ @@@@ + ~~~~@@@@~~ ~~@@@@~~~~ + @@@ ~~~~ @@@@@ ~~~~ @@@ + ~~~@@@@ @@@@~~~~~@@@@ @@@@~~~ + ~~~~@@@~~~~ ~~~~@@@~~~ + ~~~ ~~~ \ No newline at end of file diff --git a/config/ascii/ubuntu b/config/ascii/ubuntu new file mode 100644 index 0000000..c218f51 --- /dev/null +++ b/config/ascii/ubuntu @@ -0,0 +1,20 @@ + .-/+oossssoo+\-. + ยด:+ssssssssssssssssss+:` + -+ssssssssssssssssssyyssss+- + .ossssssssssssssssssdMMMNysssso. + /ssssssssssshdmmNNmmyNMMMMhssssss\ + +ssssssssshmydMMMMMMMNddddyssssssss+ + /sssssssshNMMMyhhyyyyhmNMMMNhssssssss\ +.ssssssssdMMMNhsssssssssshNMMMdssssssss. ++sssshhhyNMMNyssssssssssssyNMMMysssssss+ +ossyNMMMNyMMhsssssssssssssshmmmhssssssso +ossyNMMMNyMMhsssssssssssssshmmmhssssssso ++sssshhhyNMMNyssssssssssssyNMMMysssssss+ +.ssssssssdMMMNhsssssssssshNMMMdssssssss. + \sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ + +sssssssssdmydMMMMMMMMddddyssssssss+ + \ssssssssssshdmNNNNmyNMMMMhssssss/ + .ossssssssssssssssssdMMMNysssso. + -+sssssssssssssssssyyyssss+- + `:+ssssssssssssssssss+:` + .-\+oossssoo+/-. \ No newline at end of file diff --git a/config/fetch_script_functions.sh b/config/fetch_script_functions.sh index daf97b1..c539e3c 100644 --- a/config/fetch_script_functions.sh +++ b/config/fetch_script_functions.sh @@ -23,10 +23,10 @@ get_shell() { *) SHELL_NAME=${SHELL##*/} SHELL_VERSION="$($SHELL --version)" - SHELL_VERSION=$(SHELL_VERSION//,//) - SHELL_VERSION=$(SHELL_VERSION// //) - SHELL_VERSION=$(SHELL_VERSION//VERSION//) - SHELL_VERSION=$(SHELL_VERSION//"$SHELL_NAME"//) + SHELL_VERSION=${SHELL_VERSION//","} + SHELL_VERSION=${SHELL_VERSION//" "} + SHELL_VERSION=${SHELL_VERSION//"version"} + SHELL_VERSION=${SHELL_VERSION//"$SHELL_NAME"} echo "$SHELL_NAME $SHELL_VERSION" unset SHELL_NAME unset SHELL_VERSION @@ -51,7 +51,7 @@ get_used_mem() { } get_de_wm() { - if [[ $DESKTOP_SESSION == "plasma" ]]; then + if [[ $DESKTOP_SESSION =~ "plasma" ]]; then echo "KDE Plasma $(plasmashell --version | sed 's/plasmashell //g')" else echo "$DESKTOP_SESSION"