#!/bin/sh # # ufetch-arch - tiny system info for arch ## INFO # user is already defined host="$(cat /etc/hostname)" os='Synology' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(opkg list-installed | wc -l)" shell="$(basename "$SHELL")" ## UI DETECTION ui='DSM' uitype='UI' ## DEFINE COLORS # probably don't change these if [ -x "$(command -v tput)" ]; then bold="$(tput bold)" black="$(tput setaf 0)" red="$(tput setaf 1)" green="$(tput setaf 2)" yellow="$(tput setaf 3)" blue="$(tput setaf 4)" magenta="$(tput setaf 5)" cyan="$(tput setaf 6)" white="$(tput setaf 7)" reset="$(tput sgr0)" fi # you can change these lc="${reset}${bold}${blue}" # labels nc="${reset}${bold}${blue}" # user and hostname ic="${reset}" # info c0="${reset}${blue}" # first color ## OUTPUT cat <