You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/bin/sh
  2. gitdir=http://github.com/dtch-
  3. myblog=http://www.dtch.info/
  4. c00=$'\e[0;30m'
  5. c01=$'\e[0;31m'
  6. c02=$'\e[0;32m'
  7. c03=$'\e[0;33m'
  8. c04=$'\e[0;34m'
  9. c05=$'\e[0;35m'
  10. c06=$'\e[0;36m'
  11. c07=$'\e[0;37m'
  12. c08=$'\e[1;30m'
  13. c09=$'\e[1;31m'
  14. c10=$'\e[1;32m'
  15. c11=$'\e[1;33m'
  16. c12=$'\e[1;34m'
  17. c13=$'\e[1;35m'
  18. c14=$'\e[1;36m'
  19. c15=$'\e[1;37m'
  20. f0=$'\e[1;30m'
  21. f1=$'\e[1;37m'
  22. f2=$'\e[0;37m'
  23. wmname="swm"
  24. kernel=`uname -rmo`
  25. cpuspe="`sed -n '/model\ name/s/^.*:\ //p' /proc/cpuinfo | uniq` (x`nproc`)"
  26. system=`sed 's/\s*[\(\\]\+.*$//' /etc/issue`
  27. if [ -n "$DISPLAY" ]; then
  28. #wmname=`xprop -root WM_NAME|cut -d\" -f2`
  29. termfn=`sed -n 's/^.*\*font:\s* -\*-\([^-]*\)-.*/\1/p' ~/.Xresources|sed 1q`
  30. systfn=`sed -n 's/^.*font.*"\(.*\)".*$/\1/p' ~/.gtkrc-2.0`
  31. else
  32. #wmname="bspwm"
  33. termfn="none"
  34. systfn="none"
  35. fi
  36. pkgnum=`pacman -Q|wc -l`
  37. birthd=`sed -n '1s/^\[\([0-9-]*\).*$/\1/p' /var/log/pacman.log | tr - .`
  38. cat << EOF
  39. ${c00}▉▉ | ${f1}OS ${f0}........... $f2$system
  40. ${c08} ▉▉| ${f1}name ${f0}......... $f2$HOSTNAME
  41. ${c01}▉▉ | ${f1}birth day${f0}..... $f2$birthd
  42. ${c09} ▉▉| ${f1}packages ${f0}..... $f2$pkgnum
  43. ${c02}▉▉ |
  44. ${c10} ▉▉| ${f1}wm ${f0}........... $f2$wmname
  45. ${c03}▉▉ | ${f1}shell ${f0}........ $f2$SHELL
  46. ${c11} ▉▉| ${f1}terminal ${f0}..... $f2$TERM
  47. ${c04}▉▉ | ${f1}term font ${f0}.... $f2$termfn
  48. ${c12} ▉▉| ${f1}system font ${f0}.. $f2$systfn
  49. ${c05}▉▉ |
  50. ${c13} ▉▉| ${f1}kernel ${f0}....... $f2$kernel
  51. ${c06}▉▉ | ${f1}processor ${f0}.... $f2$cpuspe
  52. ${c14} ▉▉|
  53. ${c07}▉▉ | ${f1}blog ${f0}......... $f2$myblog
  54. ${c15} ▉▉| ${f1}git repos ${f0}.... $f2$gitdir
  55. EOF