Re: New Xorg - different key-codes

From: Steffen Nurpmeso <steffen_at_sdaoden.eu>
Date: Thu, 12 Mar 2020 00:01:43 +0100
Bob Willcox wrote in
<20200311214930.GC5435_at_rancor.immure.com>:
 |On Wed, Mar 11, 2020 at 02:48:56PM +0100, Michael Gmelin wrote:
 |>>> On 11. Mar 2020, at 10:29, Mark Martinec
 |>>> <Mark.Martinec+freebsd_at_ijs.si> wrote:
 ...
 |>>>> I just updated my laptop from source, and somewhere along the way
 |>>>> the key-codes Xorg sees changed.
 ...
 |> This *might* help you:
 |> 
 |> https://lists.freebsd.org/pipermail/freebsd-x11/2020-February/025046.html
 |> 
 |> (Short version: run setxkbmap in ~/.xinitrc, e.g.,
 |> setxkbmap -model pc105 -layout de)
 |
 |Will running that command return my key mappings back to what they \
 |use to be?

I for one am totally baffled that you all "just can go".
My ~/.xinitrc is (in parts)

  if command -v setxkbmap >/dev/null 2>&1; then
     if [ -f ~/.${HOSTNAME}.xkbmap ]; then
        setxkbmap `cat ~/.${HOSTNAME}.xkbmap`
     elif [ -f ~/.xkbmap ]; then
        setxkbmap `cat ~/.xkbmap`
     fi
  fi
  if command -v xmodmap >/dev/null 2>&1; then
     [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc
     [ -f ~/.${HOSTNAME}.xmodmaprc ] && xmodmap ~/.${HOSTNAME}.xmodmaprc
  fi

  if command -v xrdb >/dev/null 2>&1; then
     [ -f ~/.Xdefaults ] && xrdb -merge ~/.Xdefaults
     [ -f ~/.${HOSTNAME}.Xdefaults ] && xrdb -merge ~/.${HOSTNAME}.Xdefaults
  fi

and i (i think ever) had to _have_ those (former being
'de(nodeadkeys)', the middle one too long to paste, but also works
around the "g" key of that Lenovo notebook ever since that stopped
working).

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
Received on Wed Mar 11 2020 - 22:01:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC