.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Sep 2021 23:32:53 +0300
changeset 994 247f27cfcf68
parent 277 38c4ac60b6fb
permissions -rw-r--r--
As of ~/.bashrc having space prefixed exclude pattern in HISTIGNORE no need for dedicated file, just add a symlink!
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