.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 20 Oct 2015 21:22:47 +0300
changeset 757 70dae9e483aa
parent 277 38c4ac60b6fb
permissions -rw-r--r--
Better color for background to differ xinit lock terminal from other. Also add noticeable title.

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