tMade a few changes (Thanks to Trapped) - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit b2f4c41b206183ba8c337c733bd2bb02c9895c14
(DIR) parent 9b07274c556094ebc9a312d915a23585c3867ec1
(HTM) Author: z3bra <willy@mailoo.org>
Date: Tue, 25 Mar 2014 08:24:01 +0100
Made a few changes (Thanks to Trapped)
Diffstat:
M info.sh | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
---
(DIR) diff --git a/info.sh b/info.sh
t@@ -1,5 +1,8 @@
#!/bin/sh
+gitdir=http://git.z3bra.org
+myblog=http://blog.z3bra.org
+
c00=$'\e[0;30m'
c01=$'\e[0;31m'
c02=$'\e[0;32m'
t@@ -21,28 +24,22 @@ f0=$'\e[1;30m'
f1=$'\e[1;37m'
f2=$'\e[0;37m'
-kernel=$(uname -rmo)
-#cpuspe=$(grep 'model name' /proc/cpuinfo| sed 1q|sed 's/^.*:\ *//')
-cpuspe=$(sed -n '/model\ name/s/^.*:\ //p' /proc/cpuinfo | uniq)
-
-#system=$(lsb_release -d | sed 's/^.*:\s*//')
-system=$(cat /etc/issue|cut -d\\ -f1)
+kernel=`uname -rmo`
+cpuspe="`sed -n '/model\ name/s/^.*:\ //p' /proc/cpuinfo | uniq` (x`nproc`)"
+system=`sed 's/\s*[\(\\]\+.*$//' /etc/issue`
if [ -n "$DISPLAY" ]; then
- 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)
+ wmname=`xprop -root WM_NAME|cut -d\" -f2`
+ termfn=`sed -n 's/^.*\*font:\s* -\*-\([^-]*\)-.*/\1/p' ~/.Xresources`
+ systfn=`sed -n 's/^.*font.*"\(.*\)".*$/\1/p' ~/.gtkrc-2.0`
else
wmname="none"
termfn="none"
systfn="none"
fi
-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
+pkgnum=`pacman -Q|wc -l`
+birthd=`sed -n '1s/^\[\([0-9-]*\).*$/\1/p' /var/log/pacman.log | tr - .`
cat << EOF
${c00}▉▉ | ${f1}OS ${f0}........... $f2$system