.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 01 Feb 2016 18:06:02 +0200
changeset 786 2a3e6cf308f2
parent 277 38c4ac60b6fb
permissions -rw-r--r--
"~" expanded only on word start. Use "$HOME" instead of ~ for this reason and for uniformity.

#!/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