Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
#!/bin/sh
# Edrx, 2006feb09
# (find-es "x" "xkbprint-hamm")
# (find-es "x" "xkbprint")
# (find-es "x" "setxkbmap-switch")
# (find-angg ".fvwm/nokeys.fvwm" "KeyboardMenu")
# (find-angg ".fvwm/.fvwm2rc" "KeyboardMenu")
# (find-sh0 "~/bin/mysetxkb xkbprint")
# (find-sh0 "~/bin/mysetxkb us")
# (find-sh0 "~/bin/mysetxkb us_intl")
# (find-sh0 "~/bin/mysetxkb abnt2")

case $1 in
  xkbprint)
    xkbprint $DISPLAY ~/o.ps && gv --orientation=seascape ~/o.ps ;;
  abnt2)
    setxkbmap -geometry 'pc(abnt2)' -layout br
    # (find-man "1 xmodmap")
    # (find-man "1 xmodmap" "keycode NUMBER = KEYSYMNAME")
    xmodmap -e "keycode 94 = backslash bar"
    xmodmap -e "keycode 51 = bracketright braceright"
    ;;
  us)      setxkbmap -model pc104 -layout us ;;
  us_intl) setxkbmap -model pc104 -layout us_intl ;;
  *)  echo "Bad arg to $0: $1"
esac