.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 02 Jan 2012 18:13:30 +0200
changeset 281 754e4ee92fc0
parent 123 05fbac105c1d
child 282 3710f0a122cd
permissions -rw-r--r--
Switch to bash interpreter to get more advanced string matching functions.

#!/bin/bash

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
xsetroot -gray

# Don't use fvwm under Cygwin.
if [ -z "$COMSPEC" ]; then
  fvwm &
fi

# Last command.
exec xterm -e bash -i