.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 06 Jul 2012 19:29:26 +0300
changeset 477 d0c29482707d
parent 476 12a22ad9bab2
child 480 4d0ff0dfdeb9
permissions -rw-r--r--
Switch to kbdd program for manage input method.

#!/bin/bash

if [[ -f ~/.bash_path ]]; then
  . ~/.bash_path
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