.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 25 Dec 2022 16:44:57 +0200
changeset 1010 1616bc25541c
parent 277 38c4ac60b6fb
permissions -rw-r--r--
Fixed warning: grep: warning: GREP_COLOR is deprecated; use GREP_COLORS.

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