No Description
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.

skriptkontrol.sh 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. xterm -geometry 94x46+514+0 -e "clear;figlet -f \
  3. speed $(echo "$(uname -s -r)" | tr '[:lower:]' '[:upper:]');
  4. figlet -f graffiti $USER;cat ~/.puffy;ksh" &
  5. xset b off &
  6. xrdb $HOME/.Xdefaults &
  7. # ===============to=be=commented=if=fvwmrc=left=unchanged===================== #
  8. xclock -bg grey -fg black -hd black -hl black -padding 0 -update 1 \
  9. -geometry 150x150+1116+395 &
  10. xload -bg grey -geometry +1116+559 &
  11. # ===============================performances================================= #
  12. echo " __________________________________________________________________"
  13. echo " | 1) minimal cpu freq, requires root passwd (else != 1) |"
  14. echo " | 2) start default apm daemon... |"
  15. echo " ------------------------------------------------------------------"
  16. read choix_1
  17. case $choix_1 in
  18. 1) (su -l root -c "apmd; apm -L")
  19. ;;
  20. 2) (apmd)
  21. esac
  22. apmd
  23. # ============================================================================ #
  24. i="0"
  25. while [ $i -lt 1 ]
  26. do
  27. clear
  28. # ==========================huge==linear==goret==part========================= #
  29. echo " "
  30. echo -n " " && uname -srp && echo -n " *** CHECKING SYSTEM TERM ***" \
  31. && echo "\n" && apm && \
  32. echo "----------------------------------------------------------" && \
  33. df -h && echo "----------------------------------------------------------" \
  34. && sysctl | grep sensors.cpu && \
  35. echo "----------------------------------------------------------" && \
  36. top | head -14 | tail -8 | awk '{$1=$2=$3=$4=""; print $0}' && \
  37. echo "\n\t\t\t\t [by serguei.chmod77]" && \
  38. echo "----------------------------------------------------------" && \
  39. figlet -f graffiti Kontrol &
  40. # both of the (n,n') values in "head -14 | tail -8" before awk's treatment are
  41. # relative to the number of your cpu threads. So it's up to you to adjust these
  42. # integers to get the appropriate selection.
  43. pid=$!
  44. sleep 2
  45. kill $pid
  46. done