Browse Source

new file: .Xdefaults

	new file:   .puffy
	new file:   readme.md
	new file:   skriptkontrol.sh
Serguei Chmod777 4 years ago
commit
ac830910b2
4 changed files with 138 additions and 0 deletions
  1. 52
    0
      .Xdefaults
  2. 18
    0
      .puffy
  3. 30
    0
      readme.md
  4. 38
    0
      skriptkontrol.sh

+ 52
- 0
.Xdefaults View File

@@ -0,0 +1,52 @@
1
+#include "/etc/X11/app-defaults/XTerm"
2
+! $OpenBSD: dot.Xdefaults,v 1.3 2014/07/10 10:22:59 jasper Exp $
3
+
4
+XTerm*loginShell:       true
5
+XTerm*ScrollBar:        true
6
+XTerm*dynamicColors:    true
7
+XTerm*locale:           utf8
8
+XTerm*saveLines:        4096
9
+XTerm*autoWrap:         true
10
+XTerm*eightBitInput:    false
11
+XTerm*eightBitOutput:   true
12
+
13
+*VT100*colorMode: on
14
+*VT100*boldColors: on
15
+*VT100*dynamicColors: on
16
+
17
+*VT100*colorULMode: on
18
+*VT100*underLine: off
19
+*VT100*colorUL: yellow
20
+
21
+*VT100*colorBDMode: on
22
+*VT100*colorBD: red3
23
+
24
+
25
+XTerm*background: black
26
+XTerm*foreground: grey
27
+XTerm*cursorColor: #aeafad
28
+*VT100*color0: #000000
29
+*VT100*color1: #912226
30
+*VT100*color2: #778900
31
+*VT100*color3: #ae7b00
32
+*VT100*color4: #1d2594
33
+*VT100*color5: #682a9b
34
+*VT100*color6: #2b6651
35
+*VT100*color7: #929593
36
+*VT100*color8: #666666
37
+*VT100*color9: #cc6666
38
+*VT100*color10: #b5bd68
39
+*VT100*color11: #f0c674
40
+*VT100*color12: #81a2be
41
+*VT100*color13: #b294bb
42
+*VT100*color14: #8abeb7
43
+*VT100*color15: #ecebec
44
+
45
+urxvt.scrollBar: false
46
+urxvt.perl-ext-common: default,matcher
47
+urxvt.url-launcher: /usr/local/bin/seamonkey
48
+urxvt.matcher.button: 1
49
+urxvt.colorUL: #4682B4
50
+urxvt.scrollTtyOutput: false
51
+urxvt.scrollWithBuffer: true
52
+urxvt.scrollTtyKeypress: true

+ 18
- 0
.puffy View File

@@ -0,0 +1,18 @@
1
+         _ . |\ _| \--+._/| .      
2
+        / ||\| Y J  )   / |/| ./   
3
+       J  |)'( |        ` F`.'/
4
+     -<|  F         __     .-<     
5
+       | /       .-'. `.  /-. L___ 
6
+       J \      <    \  | | O\|.-'
7
+     _J \  .-    \/ O | | \  |F
8
+    '-F  -<_.     \   .-'  `-' L__ 
9
+   __J  _   _.     >-'  )._.   |-' 
10
+   `-|.'   /_.           \_|   F   
11
+     /.-   .                _.<    
12
+    /'    /.'             .'  `\   
13
+     /L  /'   |/      _.-'-\
14
+    /'J       ___.---'\|
15
+      |\  .--' V  | `. `
16
+      |/`. `-.     `._)
17
+         / .-.\
18
+         \ (  `\

+ 30
- 0
readme.md View File

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

+ 38
- 0
skriptkontrol.sh View File

@@ -0,0 +1,38 @@
1
+#!/bin/sh
2
+xterm -geometry 94x46+514+0 -e "clear;figlet -f speed $(echo "$(uname -s -r)" | tr '[:lower:]' '[:upper:]');
3
+figlet -f graffiti $USER;cat ~/.puffy;ksh" &
4
+xclock -bg grey -fg black -hd black -hl black -padding 0 -update 1 -geometry 150x150+1116+395 &
5
+xload -bg grey -geometry +1116+559 &
6
+
7
+# ===========================performances===================================== #
8
+xset b off &
9
+xrdb $HOME/.Xdefaults &
10
+
11
+echo " __________________________________________________________________"
12
+echo " | 1) minimal cpu freq, requires root passwd (else != 1)          |"
13
+echo " | 2) start default apm daemon...                                 |"
14
+echo " ------------------------------------------------------------------"
15
+read choix_1
16
+case $choix_1 in
17
+    1) (su -l root -c "apmd; apm -L")
18
+    ;;
19
+    2) (apmd)
20
+esac
21
+
22
+apmd
23
+
24
+# ============================================================================= #
25
+
26
+i="0"
27
+while [ $i -lt 1 ]
28
+do
29
+
30
+clear
31
+echo " "
32
+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 &
33
+
34
+
35
+pid=$!
36
+sleep 2
37
+kill $pid
38
+done

Loading…
Cancel
Save