.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 08 Jul 2012 13:59:21 +0300
changeset 480 4d0ff0dfdeb9
parent 477 d0c29482707d
child 484 cf2e6576575c
permissions -rw-r--r--
Rename '.bash_path' to '.bashenv'.

#!/bin/bash

if [[ -f ~/.bashenv ]]; then
  . ~/.bashenv
fi
# Load custom settings (user editable).
if [[ -f ~/.bash_custom ]]; then
  . ~/.bash_custom
fi

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
  setxkbmap us,ru,ua
  kbdd &
  if [[ -f ~/.xmodmaprc ]]; then
    xmodmap ~/.xmodmaprc
  fi
  xsetroot -gray
  fvwm &
fi

# Last command.
exec xterm -geometry 80x42 -e bash -i