.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 19 Apr 2012 14:06:51 +0300
changeset 428 69b25646bb6a
parent 310 3f53690ce833
child 429 3581fc28f888
permissions -rw-r--r--
Under Cygwin I prefer '-multiwindow' option, so it needn't to setup WM.

#!/bin/bash

if [[ -f ~/.bash_path ]]; then
  . ~/.bash_path
fi

xrdb -merge ~/.Xdefaults
# xrdb -load ~/.Xdefaults

# Set lang switch.
# Because of bug in xorg invoking setxkbmap cause disable repeat char when key pressed.
# setxkbmap -rules xorg -model pc104 -layout "us,ru" -option "grp:rwin_toggle,grp_led:scroll" &

# Root window parameter.
# Color names check from /etc/X11/rgb.txt or enter in hex: #aabbcc.
# xsetroot -gray -fg red -bg white
# xsetroot -bitmap dir/file.bitmap -fg red -bg white
# xsetroot -mod 3 3 -fg red -bg white

# Under Cygwin I prefer '-multiwindow' option, so it needn't to setup WM.
if [[ -z $COMSPEC ]]; then
  xsetroot -gray &
  fvwm &
fi

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