summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcolors34
-rwxr-xr-xviod17
-rw-r--r--xorg.conf6
3 files changed, 57 insertions, 0 deletions
diff --git a/colors b/colors
new file mode 100755
index 0000000..ec6c9b4
--- /dev/null
+++ b/colors
@@ -0,0 +1,34 @@
+#!/bin/bash
+# Original: http://frexx.de/xterm-256-notes/
+# http://frexx.de/xterm-256-notes/data/colortable16.sh
+# Modified by Aaron Griffin
+# and further by Kazuo Teramoto
+
+
+FGNAMES=(' black ' ' red ' ' green ' ' yellow' ' blue ' 'magenta' ' cyan ' ' white ')
+BGNAMES=('DFT' 'BLK' 'RED' 'GRN' 'YEL' 'BLU' 'MAG' 'CYN' 'WHT')
+echo " ----------------------------------------------------------------------------"
+for b in $(seq 0 8); do
+ if [ "$b" -gt 0 ]; then
+ bg=$(($b+39))
+ fi
+
+ echo -en "\033[0m ${BGNAMES[$b]} : "
+ for f in $(seq 0 7); do
+ echo -en "\033[${bg}m\033[$(($f+30))m ${FGNAMES[$f]} "
+ done
+ echo -en "\033[0m :"
+
+ echo -en "\033[0m\n\033[0m : "
+ for f in $(seq 0 7); do
+ echo -en "\033[${bg}m\033[1;$(($f+30))m ${FGNAMES[$f]} "
+ done
+ echo -en "\033[0m :"
+ echo -e "\033[0m"
+
+ if [ "$b" -lt 8 ]; then
+ echo " ----------------------------------------------------------------------------"
+ fi
+done
+echo " ----------------------------------------------------------------------------"
+
diff --git a/viod b/viod
new file mode 100755
index 0000000..8bb4c21
--- /dev/null
+++ b/viod
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+editor=vi
+
+if [ $# -eq 0 ]
+then
+ echo "usage: `basename $0` file"
+ exit 1
+fi
+
+file=$1
+
+timestamp=`stat -c %y "$file" | cut -d. -f1 | cut -d" " -f1 | awk -F- '{print $1 $2 $3}'``stat -c %y "$file" | cut -d. -f1 | cut -d" " -f2 | awk -F: '{print $1 $2 "." $3}'`
+
+"$editor" "$file"
+
+touch -t $timestamp "$file"
diff --git a/xorg.conf b/xorg.conf
index d393d51..1f8d1a2 100644
--- a/xorg.conf
+++ b/xorg.conf
@@ -19,6 +19,7 @@ EndSection
Section "Monitor"
Identifier "Display"
+ Option "DPMS" "false"
EndSection
Section "Screen"
@@ -31,6 +32,11 @@ Section "ServerLayout"
Identifier "Layout"
InputDevice "Keyboard"
Screen "Screen"
+ Option "BlankTime" "0"
+ Option "StandbyTime" "0"
+ Option "SuspendTime" "0"
+ Option "OffTime" "0"
+ Option "NoPM" "1"
EndSection
Section "ServerFlags"