.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 27 Feb 2013 19:30:23 +0200
changeset 619 8080fc135a18
parent 277 38c4ac60b6fb
permissions -rw-r--r--
Enable '**' patttern matching. If the pattern is followed by a /, only dirs match. Ignore case in glob. Show stopped jobs before exit.

#!/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 -nolisten tcp "$@"
fi