.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 18 Dec 2011 17:36:24 +0200
changeset 276 eb428b5e125a
parent 272 558a19eb6af8
child 277 38c4ac60b6fb
permissions -rw-r--r--
Copy option from '/etc/X11/xinit/xserverrc' for Debian.

#!/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" "$@"
elif [ -f /etc/debian_version ]; then
  exec /usr/bin/X -nolisten tcp "$@"
else
  exec X
fi