summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-04-06 11:09:15 +0000
committerShubham Saini <shubham6405@gmail.com>2020-04-06 11:09:15 +0000
commit360a02f99e86cba9292138dc664aca67daeb896c (patch)
treef21483d85fd5639e36f6ed7b75d6319ef76a3c7d /bin
parent7deccfd153014e1ab27d5b658b8f144718c74d23 (diff)
why tho
Diffstat (limited to 'bin')
-rwxr-xr-xbin/.local/bin/fetch28
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
8host="$(hostname)" 8host="$(hostname)"
9os='Gentoo Linux' 9os='Void Linux'
10kernel="$(uname -sr)" 10kernel="$(uname -sr)"
11uptime="$(uptime -p | sed 's/up //')" 11uptime="$(uptime -p | sed 's/up //')"
12packages="$(ls -d /var/db/pkg/*/* | wc -l)" 12packages="$(xbps-query -l | wc -l)"
13shell="$(basename "$SHELL")" 13shell="$(basename "$SHELL")"
14 14
15## UI DETECTION 15## UI DETECTION
@@ -54,23 +54,23 @@ if [ -x "$(command -v tput)" ]; then
54fi 54fi
55 55
56# you can change these 56# you can change these
57lc="${reset}${bold}${magenta}" # labels 57lc="${reset}${bold}${green}" # labels
58nc="${reset}${bold}${magenta}" # user and hostname 58nc="${reset}${bold}${green}" # user and hostname
59ic="${reset}" # info 59ic="${reset}" # info
60c0="${reset}${bold}${magenta}" # first color 60c0="${reset}${bold}${green}" # first color
61c1="${reset}${magenta}" # second color 61c1="${reset}${green}" # second color
62 62
63## OUTPUT 63## OUTPUT
64 64
65cat <<EOF 65cat <<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
75EOF 75EOF
76 76