new file: .Xdefaults

new file:   .puffy
	new file:   readme.md
	new file:   skriptkontrol.sh
This commit is contained in:
Serguei Chmod777 2015-10-06 09:17:50 +02:00
commit ac830910b2
4 changed files with 138 additions and 0 deletions

52
.Xdefaults Executable file
View File

@ -0,0 +1,52 @@
#include "/etc/X11/app-defaults/XTerm"
! $OpenBSD: dot.Xdefaults,v 1.3 2014/07/10 10:22:59 jasper Exp $
XTerm*loginShell: true
XTerm*ScrollBar: true
XTerm*dynamicColors: true
XTerm*locale: utf8
XTerm*saveLines: 4096
XTerm*autoWrap: true
XTerm*eightBitInput: false
XTerm*eightBitOutput: true
*VT100*colorMode: on
*VT100*boldColors: on
*VT100*dynamicColors: on
*VT100*colorULMode: on
*VT100*underLine: off
*VT100*colorUL: yellow
*VT100*colorBDMode: on
*VT100*colorBD: red3
XTerm*background: black
XTerm*foreground: grey
XTerm*cursorColor: #aeafad
*VT100*color0: #000000
*VT100*color1: #912226
*VT100*color2: #778900
*VT100*color3: #ae7b00
*VT100*color4: #1d2594
*VT100*color5: #682a9b
*VT100*color6: #2b6651
*VT100*color7: #929593
*VT100*color8: #666666
*VT100*color9: #cc6666
*VT100*color10: #b5bd68
*VT100*color11: #f0c674
*VT100*color12: #81a2be
*VT100*color13: #b294bb
*VT100*color14: #8abeb7
*VT100*color15: #ecebec
urxvt.scrollBar: false
urxvt.perl-ext-common: default,matcher
urxvt.url-launcher: /usr/local/bin/seamonkey
urxvt.matcher.button: 1
urxvt.colorUL: #4682B4
urxvt.scrollTtyOutput: false
urxvt.scrollWithBuffer: true
urxvt.scrollTtyKeypress: true

18
.puffy Normal file
View File

@ -0,0 +1,18 @@
_ . |\ _| \--+._/| .
/ ||\| Y J ) / |/| ./
J |)'( | ` F`.'/
-<| F __ .-<
| / .-'. `. /-. L___
J \ < \ | | O\|.-'
_J \ .- \/ O | | \ |F
'-F -<_. \ .-' `-' L__
__J _ _. >-' )._. |-'
`-|.' /_. \_| F
/.- . _.<
/' /.' .' `\
/L /' |/ _.-'-\
/'J ___.---'\|
|\ .--' V | `. `
|/`. `-. `._)
/ .-.\
\ ( `\

30
readme.md Normal file
View File

@ -0,0 +1,30 @@
```
The skriptkontrol.sh script was quickly written to pimp a FVWM default
environment on OpenBSD. If you run it automatically at startup, the first
and only one "dialog box" displayed, will allow you to choose either your
cpu computes at high (default) performances, or at the lowest level the
APMD offers. I found this trivial change quite useful while using a laptop.
Clearly, it depends on what kind of processor or laptop you're using.
Note : I noticed a thin "edge effect" left behind an upgrade from a version
of OpenBSD to another : the title of the fvwm's Pager remain the same.
So, if you do have already customize it, you should have a $HOME/.fvmrc
(else, you can % cp /usr/X11R6/lib/X11/fvwm/system.fvwm2rc ~/.fvwmrc), in
which you can find a line similar to the following one :
*FvwmPagerLabel 0 "OpenBSD 5.6"
for example. It just need to be corrected by hand, thus at the next start
of a fvwm session, the title of the Pager will match with your current
system's version.
--
My Korn shell PS1 is the next one :
PROMPITO="\u##\$:\h:\w:\n>>"
PS1="$(printf "\033[0;36m%s\033[0;37m " $PROMPITO)"
# to be added within $HOME/.kshrc, obviously.
```

38
skriptkontrol.sh Normal file
View File

@ -0,0 +1,38 @@
#!/bin/sh
xterm -geometry 94x46+514+0 -e "clear;figlet -f speed $(echo "$(uname -s -r)" | tr '[:lower:]' '[:upper:]');
figlet -f graffiti $USER;cat ~/.puffy;ksh" &
xclock -bg grey -fg black -hd black -hl black -padding 0 -update 1 -geometry 150x150+1116+395 &
xload -bg grey -geometry +1116+559 &
# ===========================performances===================================== #
xset b off &
xrdb $HOME/.Xdefaults &
echo " __________________________________________________________________"
echo " | 1) minimal cpu freq, requires root passwd (else != 1) |"
echo " | 2) start default apm daemon... |"
echo " ------------------------------------------------------------------"
read choix_1
case $choix_1 in
1) (su -l root -c "apmd; apm -L")
;;
2) (apmd)
esac
apmd
# ============================================================================= #
i="0"
while [ $i -lt 1 ]
do
clear
echo " "
echo -n " " && uname -srp && echo -n " *** CHECKING SYSTEM TERM ***" && echo "\n" && apm && echo "----------------------------------------------------------" && df -h && echo "----------------------------------------------------------" && sysctl | grep sensors.cpu && echo "----------------------------------------------------------" && top | head -14 | tail -8 | awk '{$1=$2=$3=$4=""; print $0}' && echo "\n\t\t\t\t [by serguei.chmod77]" && echo "----------------------------------------------------------" && figlet -f graffiti Kontrol &
pid=$!
sleep 2
kill $pid
done