Swap modifiers to previous assignment because I don't want to fix them in
~/.fvwm. Assign keycode to Caps_Lock before aliasing to LCtrl so ~/.xmodmaprc
script can be re-evaluated without errors.
#!/bin/sh
# http://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html
if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then
# Probably under Cygwin.
exec XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle" "$@"
elif [ -f /etc/debian_version ]; then
exec /usr/bin/X -nolisten tcp "$@"
else
exec X -nolisten tcp "$@"
fi