.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 31 Oct 2012 10:20:28 +0200
changeset 580 34b0b3232025
parent 544 ee6112ed88da
child 582 3412c9885616
permissions -rw-r--r--
* Load Emacs and Firefox automatically. * Load timer first. * Load Emacs second as it can load long time. * SkipMapping was not added to emacs to give focus it.

#!/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
  # To debug FvwmM4 add "-debug" after "FvwmM4".
  fvwm -cmd "Module FvwmM4 -m4-prefix -m4-prefix-defines $HOME/.fvwm/config" &
fi

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