Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # bonefetch
- ## INFO
- # user is already defined
- host="$(hostname)"
- os='Debian'
- kernel="$(uname -r | sed 's/-amd64//')"
- uptime="$(uptime |awk -F, '{print $1,$2}' | sed 's/:/h /g;s/^.*up *//;s/ *[0-9]* user.*//;s/[0-9]$/&m/;s/ day. */d /g')"
- packages="508"
- shell="/bin/$(basename ${SHELL})"
- if [ -z "${WM}" ]; then
- WM="herbstluftwm"
- fi
- ## DEFINE COLORS
- # probably don't change these
- 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)"
- # you can change these
- lc="${reset}${bold}${yellow}" # labels
- nc="${reset}${bold}${blue}" # user and hostname
- ic="${reset}${bold}${white}" # info
- c0="${reset}${bold}${blue}" # first color
- c1="${reset}${blue}" # second color
- ## OUTPUT
- cat <<EOF
- ${nc} ▄▄▄▄▄▄▄ ${lc}${reset}
- ${nc} ▄█▀ ▀█▄ ${lc}OS: ${ic}${os}${reset}
- ${nc} █ █ ${lc}KL: ${ic}${kernel}${reset}
- ${nc} ██ ▄ ██ █ ${lc}UP: ${ic}${uptime}${reset}
- ${nc} █▄ ▄▄█▀ ${lc}SH: ${ic}${shell}${reset}
- ${nc} █▄█▄█▄█▀ ${lc}WM: ${ic}${WM}${reset}
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement