X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=dot-files%2F_xinitrc;h=ffaccdbc45090e0f113f8227542cd28e54d9aaa4;hb=b811bc457399ca9e8ec15be96a82994b9f063e9d;hp=292ac239083244674d737cbaf36648d3dabe0cd3;hpb=e0878e9eba1e71ce7cd3e223843a7258d43e34ff;p=sugar.git diff --git a/dot-files/_xinitrc b/dot-files/_xinitrc index 292ac23..ffaccdb 100644 --- a/dot-files/_xinitrc +++ b/dot-files/_xinitrc @@ -1,15 +1,25 @@ #!/bin/sh -# $Id: xinitrc,v 1.2 2003/02/27 19:03:30 jharper Exp $ 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 + xset fp+ /usr/local/lib/X11/fonts/Unicode + xset fp rehash +fi -xset fp+ /usr/local/lib/X11/fonts/Unicode -xset fp rehash +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 @@ -31,12 +41,63 @@ 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 the window manager +# start some nice programs +xhost +localhost + +# Set the mouse speed +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 + +# 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 & + +elif which VBoxClient >/dev/null 2>&1; then + echo "VirtualBox Guest Addon is available. Starting..." + VBoxClient --display + VBoxClient --clipboard +fi + +if which dunst 2>&1; then + dunst & +fi + +# Start the compositor +if which compton >/dev/null 2>&1; then + compton --daemon +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 -exec fluxbox +if which fluxbox >/dev/null 2>&1; then + exec fluxbox +fi +exec twm