author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Thu, 13 Aug 2015 21:58:45 +0300 | |
changeset 746 | 5dfc65f89cf0 |
parent 277 | 38c4ac60b6fb |
permissions | -rw-r--r-- |
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 | 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 |