]> git.armaanb.net Git - bin.git/blob - ufetch
30f25f97ee31da576ab7a2bddf976ebdec3300ec
[bin.git] / ufetch
1 #!/bin/sh
2 # ufetch-armaan. My customized version of ufetch that doesn't print the ascii art, and doesn't spend time looking things up like the DE. Full credit goes to jschx (Joe Schillinger), the author of ufetch. <https://gitlab.com/jschx/ufetch>
3
4 ## INFO
5 host="$(cat /etc/hostname | head -n 1)"
6 os="$(cat /etc/os-release | head -n 1 | cut -d '"' -f 2)"
7 kernel="$(uname -sr)"
8 uptime="$(uptime -p | cut -d ',' -f 1-2 | tail -c +4)"
9 shell="zsh"
10 ui="KDE Plasma"
11
12 ## DEFINE COLORS
13 bold='\033[1m'
14 white='\033[0;37m'
15 reset='\033[0m'
16
17 # you can change these
18 lc="${reset}${bold}${white}"         # labels
19 nc="${reset}${bold}${white}"         # user and hostname
20 ic="${reset}"                        # info
21
22 ## OUTPUT
23 printf "${nc}${USER}${ic}@${nc}${host}${reset}
24 ${lc}OS        ${ic}${os}${reset}
25 ${lc}KERNEL    ${ic}${kernel}${reset}
26 ${lc}UPTIME    ${ic}${uptime}${reset}
27 ${lc}SHELL     ${ic}${shell}${reset}
28 ${lc}DE        ${ic}${ui}${reset}
29 "