tScript to display infos on the running computer - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 951ee5714be3d8c99cc2471105d7033e7e6b10c6
 (DIR) parent f18d38510632fb2a3190323b932cc311a7f56b06
 (HTM) Author: Willy Goiffon <w.goiffon@gmail.com>
       Date:   Mon, 30 Sep 2013 17:54:45 +0200
       
       Script to display infos on the running computer
       
       Diffstat:
         A info.sh                             |      56 +++++++++++++++++++++++++++++++
       
       1 file changed, 56 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/info.sh b/info.sh
       t@@ -0,0 +1,56 @@
       +#!/bin/bash
       +
       +c00=$'\e[0;30m'
       +c01=$'\e[0;31m'
       +c02=$'\e[0;32m'
       +c03=$'\e[0;33m'
       +c04=$'\e[0;34m'
       +c05=$'\e[0;35m'
       +c06=$'\e[0;36m'
       +c07=$'\e[0;37m'
       +c08=$'\e[1;30m'
       +c09=$'\e[1;31m'
       +c10=$'\e[1;32m'
       +c11=$'\e[1;33m'
       +c12=$'\e[1;34m'
       +c13=$'\e[1;35m'
       +c14=$'\e[1;36m'
       +c15=$'\e[1;37m'
       +
       +f0=$'\e[1;30m'
       +f1=$'\e[1;37m'
       +f2=$'\e[0;37m'
       +
       +kernel=$(uname -rmo)
       +cpuspe=$(grep 'model name' /proc/cpuinfo| uniq| sed 's/^.*:\ *//')
       +
       +system=$(lsb_release -d | sed 's/^.*:\s*//')
       +
       +wmname=$(xprop -root WM_NAME|cut -d\" -f2)
       +termfn=$(sed -n 's/^.*\*font:\ *-[a-z]*-\([^-]*\)-.*/\1/p' ~/.Xresources)
       +systfn=$(sed -n 's/^.*font.*"\(.*\)".*$/\1/p' ~/.gtkrc-2.0)
       +
       +pkgnum=$(pacman -Q|wc -l)
       +birthd=$(sed -n '1s/^\[\([0-9-]*\).*$/\1/p' /var/log/pacman.log | tr - .)
       +
       +gitdir=git.z3bra.org
       +myblog=blog.z3bra.org
       +
       +cat << EOF
       +${c00}▉▉  | ${f1}OS ${f0}........... $f2$system
       +${c08}  ▉▉| ${f1}name ${f0}......... $f2$HOSTNAME
       +${c01}▉▉  | ${f1}birth day${f0}..... $f2$birthd
       +${c09}  ▉▉| ${f1}packages ${f0}..... $f2$pkgnum
       +${c02}▉▉  | 
       +${c10}  ▉▉| ${f1}wm ${f0}........... $f2$wmname
       +${c03}▉▉  | ${f1}shell ${f0}........ $f2$SHELL
       +${c11}  ▉▉| ${f1}terminal ${f0}..... $f2$TERM
       +${c04}▉▉  | ${f1}term font ${f0}.... $f2$termfn
       +${c12}  ▉▉| ${f1}system font ${f0}.. $f2$systfn
       +${c05}▉▉  | 
       +${c13}  ▉▉| ${f1}kernel ${f0}....... $f2$kernel
       +${c06}▉▉  | ${f1}processor ${f0}.... $f2$cpuspe
       +${c14}  ▉▉| 
       +${c07}▉▉  | ${f1}blog ${f0}......... $f2$myblog
       +${c15}  ▉▉| ${f1}git repos ${f0}.... $f2$gitdir
       +EOF