.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 05 Dec 2011 00:41:55 +0200
changeset 272 558a19eb6af8
parent 271 d645bb7a2702
child 276 eb428b5e125a
permissions -rw-r--r--
Replace shell with X server to save memory.
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.
272
558a19eb6af8 Replace shell with X server to save memory.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 271
diff changeset
     7
  exec XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"
95
c16da6e2ae58 Set useful settings for X Window under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
else
272
558a19eb6af8 Replace shell with X server to save memory.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 271
diff changeset
     9
  exec X
95
c16da6e2ae58 Set useful settings for X Window under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
fi