Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # birdfetch
- ## 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="$(basename ${SHELL})"
- if [ -z "${wm}" ]; then
- wm="herbst"
- 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}${cyan}" # labels
- nc="${reset}${bold}${blue}" # user and hostname
- ic="${reset}${bold}${white}" # info
- c0="${reset}${bold}${yellow}" # first color
- c1="${reset}${blue}" # second color
- ## OUTPUT
- cat <<EOF
- ${ic} /•${c0}> ${lc}os: ${ic}${os}${reset}
- ${ic} /)\| ${lc}kern: ${ic}${kernel}${reset}
- ${ic} // / ${lc}pkgs: ${ic}${packages}${reset}
- ${ic} /'${c0}" " ${lc}shell: ${ic}${shell}${reset}
- ${ic} / ${lc}wm: ${ic}${wm}${reset}
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement