diff options
| author | Shubham Saini <shubham6405@gmail.com> | 2020-04-06 11:09:15 +0000 |
|---|---|---|
| committer | Shubham Saini <shubham6405@gmail.com> | 2020-04-06 11:09:15 +0000 |
| commit | 360a02f99e86cba9292138dc664aca67daeb896c (patch) | |
| tree | f21483d85fd5639e36f6ed7b75d6319ef76a3c7d /bin | |
| parent | 7deccfd153014e1ab27d5b658b8f144718c74d23 (diff) | |
why tho
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/.local/bin/fetch | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/bin/.local/bin/fetch b/bin/.local/bin/fetch index 93d7fc7..05cb71e 100755 --- a/bin/.local/bin/fetch +++ b/bin/.local/bin/fetch | |||
| @@ -1,15 +1,15 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # | 2 | # |
| 3 | # ufetch-gentoo - tiny system info for gentoo | 3 | # ufetch-void - tiny system info for void |
| 4 | 4 | ||
| 5 | ## INFO | 5 | ## INFO |
| 6 | 6 | ||
| 7 | # user is already defined | 7 | # user is already defined |
| 8 | host="$(hostname)" | 8 | host="$(hostname)" |
| 9 | os='Gentoo Linux' | 9 | os='Void Linux' |
| 10 | kernel="$(uname -sr)" | 10 | kernel="$(uname -sr)" |
| 11 | uptime="$(uptime -p | sed 's/up //')" | 11 | uptime="$(uptime -p | sed 's/up //')" |
| 12 | packages="$(ls -d /var/db/pkg/*/* | wc -l)" | 12 | packages="$(xbps-query -l | wc -l)" |
| 13 | shell="$(basename "$SHELL")" | 13 | shell="$(basename "$SHELL")" |
| 14 | 14 | ||
| 15 | ## UI DETECTION | 15 | ## UI DETECTION |
| @@ -54,23 +54,23 @@ if [ -x "$(command -v tput)" ]; then | |||
| 54 | fi | 54 | fi |
| 55 | 55 | ||
| 56 | # you can change these | 56 | # you can change these |
| 57 | lc="${reset}${bold}${magenta}" # labels | 57 | lc="${reset}${bold}${green}" # labels |
| 58 | nc="${reset}${bold}${magenta}" # user and hostname | 58 | nc="${reset}${bold}${green}" # user and hostname |
| 59 | ic="${reset}" # info | 59 | ic="${reset}" # info |
| 60 | c0="${reset}${bold}${magenta}" # first color | 60 | c0="${reset}${bold}${green}" # first color |
| 61 | c1="${reset}${magenta}" # second color | 61 | c1="${reset}${green}" # second color |
| 62 | 62 | ||
| 63 | ## OUTPUT | 63 | ## OUTPUT |
| 64 | 64 | ||
| 65 | cat <<EOF | 65 | cat <<EOF |
| 66 | 66 | ||
| 67 | ${c0} .-----. ${nc}${USER}${ic}@${nc}${host}${reset} | 67 | ${c0} _______ ${nc}${USER}${ic}@${nc}${host}${reset} |
| 68 | ${c0} .\` _ \`. ${lc}OS: ${ic}${os}${reset} | 68 | ${c1} ${c0}\_____ \`- ${lc}OS: ${ic}${os}${reset} |
| 69 | ${c0} \`. (${c1}_) ${c0}\`. ${lc}KERNEL: ${ic}${kernel}${reset} | 69 | ${c1} /\ ${c0}___ \`- \ ${lc}KERNEL: ${ic}${kernel}${reset} |
| 70 | ${c0} \`${c1}. / ${lc}UPTIME: ${ic}${uptime}${reset} | 70 | ${c1} | | ${c0}/ \ | | ${lc}UPTIME: ${ic}${uptime}${reset} |
| 71 | ${c1} .\` .\` ${lc}PACKAGES: ${ic}${packages}${reset} | 71 | ${c1} | | ${c0}\___/ | | ${lc}PACKAGES: ${ic}${packages}${reset} |
| 72 | ${c1} / .\` ${lc}SHELL: ${ic}${shell}${reset} | 72 | ${c1} \ \`-_____ ${c0}\/ ${lc}SHELL: ${ic}${shell}${reset} |
| 73 | ${c1} \____.-\` ${lc}${uitype}: ${ic}${ui}${reset} | 73 | ${c1} \`-______\ ${lc}${uitype}: ${ic}${ui}${reset} |
| 74 | 74 | ||
| 75 | EOF | 75 | EOF |
| 76 | 76 | ||
