.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 05 Dec 2011 00:41:55 +0200
changeset 272 558a19eb6af8
parent 271 d645bb7a2702
child 276 eb428b5e125a
permissions -rw-r--r--
Replace shell with X server to save memory.

#!/bin/sh

# http://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html

if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then
  # Probably under Cygwin.
  exec XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"
else
  exec X
fi