.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 18 Dec 2011 17:47:04 +0200
changeset 277 38c4ac60b6fb
parent 276 eb428b5e125a
permissions -rw-r--r--
Pass all args to X.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
95
c16da6e2ae58 Set useful settings for X Window under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
#!/bin/sh
c16da6e2ae58 Set useful settings for X Window under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
271
d645bb7a2702 Fix misspelling in variable name and improve Cygwin detection.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 103
diff changeset
     3
# http://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html
d645bb7a2702 Fix misspelling in variable name and improve Cygwin detection.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 103
diff changeset
     4
d645bb7a2702 Fix misspelling in variable name and improve Cygwin detection.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 103
diff changeset
     5
if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then
d645bb7a2702 Fix misspelling in variable name and improve Cygwin detection.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 103
diff changeset
     6
  # Probably under Cygwin.
276
eb428b5e125a Copy option from '/etc/X11/xinit/xserverrc' for Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 272
diff changeset
     7
  exec XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle" "$@"
eb428b5e125a Copy option from '/etc/X11/xinit/xserverrc' for Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 272
diff changeset
     8
elif [ -f /etc/debian_version ]; then
eb428b5e125a Copy option from '/etc/X11/xinit/xserverrc' for Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 272
diff changeset
     9
  exec /usr/bin/X -nolisten tcp "$@"
95
c16da6e2ae58 Set useful settings for X Window under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
else
277
38c4ac60b6fb Pass all args to X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 276
diff changeset
    11
  exec X -nolisten tcp "$@"
95
c16da6e2ae58 Set useful settings for X Window under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
fi
276
eb428b5e125a Copy option from '/etc/X11/xinit/xserverrc' for Debian.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 272
diff changeset
    13