.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 29 Sep 2012 20:33:10 +0300
changeset 556 2c98b16a87d9
parent 277 38c4ac60b6fb
permissions -rw-r--r--
If during an interactive move the window or icon comes within proximity pixels of another the window or icon, it is moved to make the borders adjoin.

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