[distribution-discuss] Workaround for wrong keyboard layout in milax 3.0 X sessions

Bernd Schemmer Bernd.Schemmer at gmx.de
Fri Apr 25 11:25:37 PDT 2008


Update

I added another test to the .profile :

if [ "${TERM}"x = "xterm"x -a "${DISPLAY}"x = ":0.0"x \
 -a ${SSH_CONNECTION}"x = ""x  ] ; then
  SEMFILE="/tmp/keyboard_layout_changed"
  NEW_KB_LAYOUT="de"
  if [ ! -f "${SEMFILE}" ] ; then
    echo "Changing the keyboard layout to \"${NEW_KB_LAYOUT}\" ..."
    setxkbmap ${NEW_KB_LAYOUT}
    xkbd
    echo  ${NEW_KB_LAYOUT} >"${SEMFILE}"
  fi
fi


-- 
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html

M s temprano que tarde el mundo cambiar .
                        Fidel Castro



More information about the distribution-discuss mailing list