]> gitweb @ CieloNegro.org - sugar.git/blobdiff - dot-files/_xinitrc
Auto commit by The Sugar System.
[sugar.git] / dot-files / _xinitrc
index b9007057c9e8ba09a87919a700a87aef56105d2d..0b492ea67ae940235b605be5a9279c05cd65d97a 100644 (file)
@@ -2,8 +2,8 @@
 
 userresources=$HOME/.Xresources
 usermodmap=$HOME/.Xmodmap
-sysresources=/etc/X11/xinit/.Xresources
-sysmodmap=/etc/X11/xinit/.Xmodmap
+sysresources=/usr/pkg/lib/X11/xinit/.Xresources
+sysmodmap=/usr/pkg/lib/X11/xinit/.Xmodmap
 
 # merge in defaults and keymaps
 if [ -d "/usr/local/lib/X11/fonts/Unicode" ]; then
@@ -11,6 +11,16 @@ if [ -d "/usr/local/lib/X11/fonts/Unicode" ]; then
     xset fp rehash
 fi
 
+if [ -d "/usr/pkg/lib/X11/fonts/local/" ]; then
+    xset fp+ /usr/pkg/lib/X11/fonts/local/
+    xset fp rehash
+fi
+
+if [ -d "/usr/pkg/lib/X11/fonts/intlfonts/" ]; then
+    xset fp+ /usr/pkg/lib/X11/fonts/intlfonts/
+    xset fp rehash
+fi
+
 if [ -f $sysresources ]; then
     xrdb -merge $sysresources
 fi
@@ -31,20 +41,47 @@ fi
 if [ -d "/usr/pkg/bin" ]; then
     PATH="/usr/pkg/bin:$PATH"; export PATH
 fi
+if [ -d "/usr/local/bin" ]; then
+    PATH="/usr/local/bin:$PATH"; export PATH
+fi
 
 LANG="ja_JP.UTF-8"; export LANG
+GTK_PATH="/usr/pkg/lib/gtk-2.0"; export GTK_PATH
 GTK_IM_MODULE="uim"; export GTK_IM_MODULE
 
 # start some nice programs
 xhost +localhost
 
 # Set the mouse speed
-xset m 5 4
+case `hostname` in
+    aria.cielonegro.org)
+        xset m 5 4;;
+    yukari.cielonegro.org)
+        :xset m '1.5' 2;;
+esac
+
+# Disable the beep / bell.
+xset -b
+
+# Launch ssh-agent-manager
+if which ssh-agent-manager 2>&1 >/dev/null; then
+    eval `ssh-agent-manager -s`
+fi
 
 echo ".xinitrc is going to exec window manager..."
 
 # start the window manager
-if which quartz-wm 2>&1 >/dev/null; then
-    quartz-wm --only-proxy &
+#if which quartz-wm 2>&1 >/dev/null; then
+#    quartz-wm --only-proxy &
+#fi
+if which vmware-user >/dev/null 2>&1; then
+    vmware-user &
+fi
+if which VBoxClient >/dev/null 2>&1; then
+    VBoxClient --display
+    VBoxClient --clipboard
+fi
+if which fluxbox >/dev/null 2>&1; then
+    exec fluxbox
 fi
-exec fluxbox
+exec twm