.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 18 Nov 2012 17:57:34 +0200
changeset 593 5fd70e2bd3ae
parent 589 e1812451b4f8
child 653 a5566b182446
permissions -rw-r--r--
Short OpenPGP keyids have been shown to be easily spoofed by another key with the same keyid. Increase the keyid display size to 64-bit.

#!/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" &
  notfy_daemon_cmd=/usr/lib/notification-daemon/notification-daemon
  if [[ -x $notfy_daemon_cmd ]]; then
    $notfy_daemon_cmd &
  fi
fi

if command -v xscreensaver; then
  xscreensaver -nosplash &
fi

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