X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=dot-files%2F_xinitrc;h=fe6473492751ff4f2c0ec4f5a0ac91e2ac88280e;hb=8f0006b57b395fd873820e5ce6bc86997d1765e4;hp=d0986d779ece8ee830b1ca3badf24b0ba84ba3db;hpb=28f86dad4cce0bfff01b36f517c8b5b8f36a6fe9;p=sugar.git diff --git a/dot-files/_xinitrc b/dot-files/_xinitrc index d0986d7..fe64734 100644 --- a/dot-files/_xinitrc +++ b/dot-files/_xinitrc @@ -16,6 +16,11 @@ if [ -d "/usr/pkg/lib/X11/fonts/local/" ]; then 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 @@ -36,6 +41,9 @@ 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 @@ -45,12 +53,42 @@ GTK_IM_MODULE="uim"; export GTK_IM_MODULE 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 -echo ".xinitrc is going to exec window manager..." +# 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 + +# Start X.org auxiliary utilities +if which vmware-user-suid-wrapper >/dev/null 2>&1; then + echo "Open Virtual Machine Tools is available. Starting..." + vmware-user-suid-wrapper + +elif vmware-user >/dev/null 2>&1; then + echo "VMWare Tools is available. Starting..." + vmware-user & -# start the window manager -if which quartz-wm 2>&1 >/dev/null; then - quartz-wm --only-proxy & +elif which VBoxClient >/dev/null 2>&1; then + echo "VirtualBox Guest Addon is available. Starting..." + VBoxClient --display + VBoxClient --clipboard +fi + +# Start the window manager +echo ".xinitrc is going to exec window manager..." +#if which quartz-wm 2>&1 >/dev/null; then +# quartz-wm --only-proxy & +#fi +if which fluxbox >/dev/null 2>&1; then + exec fluxbox fi -exec fluxbox +exec twm