.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 05 Dec 2011 00:40:43 +0200
changeset 271 d645bb7a2702
parent 103 115af53281bb
child 272 558a19eb6af8
permissions -rw-r--r--
Fix misspelling in variable name and improve Cygwin detection.

#!/bin/sh

# http://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html

if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then
  # Probably under Cygwin.
  XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"
else
  X
fi