#!/usr/bin/env sh # ufetch-armaan. My customized version of ufetch that doesn't print the ascii # art, and focuses on information that changes often. Ufetch was written # by jschx (Joe Schillinger), and is ISC licensed. # https://gitlab.com/jschx/ufetch ## INFO host="$(cat /etc/hostname)" os="Arch Linux" kernel="$(uname -sr)" uptime="$(uptime -p | sed \ -e 's/up //' \ -e 's/hour./hr/' \ -e 's/minute./min/')" date="$(date +%Y-%m-%0e)" time="$(date +%r)" tasks="$(task list due.before:week | tail -n 1 | head -c -7)" ## DEFINE COLORS bold='\033[1m' white='\033[0;37m' reset='\033[0m' lc="${reset}${bold}${white}" # labels nc="${reset}${bold}${white}" # user and hostname ic="${reset}" # info ## OUTPUT printf "${nc}${USER}${ic}@${nc}${host}${reset} ${lc}OS ${ic}${os}${reset} ${lc}KERNEL ${ic}${kernel}${reset} ${lc}UPTIME ${ic}${uptime}${reset} ${lc}DATE ${ic}${date}${reset} ${lc}TIME ${ic}${time}${reset} ${lc}TASKS ${ic}${tasks}${reset} "