.xinitrc
changeset 470 2d1f71f28130
parent 449 63fe7a1ebae4
child 471 8b397639ecc3
--- a/.xinitrc	Fri Jun 29 14:10:56 2012 +0300
+++ b/.xinitrc	Fri Jun 29 22:57:36 2012 +0300
@@ -8,12 +8,16 @@
   . ~/.bash_custom
 fi
 
-xrdb -merge ~/.Xdefaults
-# xrdb -load ~/.Xdefaults
+if [[ -f ~/.Xdefaults ];; then
+  xrdb -merge ~/.Xdefaults
+  # xrdb -load ~/.Xdefaults
+fi
 
 # Under Cygwin I prefer '-multiwindow' option, so it needn't to setup WM.
 if [[ -z $COMSPEC ]]; then
-  xmodmap ~/.xmodmaprc
+  if [[ ~/.xmodmaprc ]]; then
+    xmodmap ~/.xmodmaprc
+  fi
   xsetroot -gray
   fvwm &
 fi