Hello all,
I've got one of these nice Lenovo Thinkpad Keyboards (the old USB, wired type). Unfortunately, the one I got has the US layout but I use the Swiss layout. This mostly is solved with stickers, however many european languages use a layout with one more key (which is used for <, > and ). So this key is missing (physically).
Now there is that useless "Windows" key looking at me. Can I modify TDE's Swiss Keyboard Layout to re-map that key to <>\ ?
Thierry
Hi!
Anno domini 2026 Sun, 10 May 11:37:41 +0200 Thierry de Coulon via tde-users scripsit:
Hello all,
I've got one of these nice Lenovo Thinkpad Keyboards (the old USB, wired type). Unfortunately, the one I got has the US layout but I use the Swiss layout. This mostly is solved with stickers, however many european languages use a layout with one more key (which is used for <, > and ). So this key is missing (physically).
Now there is that useless "Windows" key looking at me. Can I modify TDE's Swiss Keyboard Layout to re-map that key to <>\ ?
Thierry
First identify the key: $ xev -event keyboard
On my thinkpad it's "Hyper_L", "keycode 133".
Now let's assigne his to "<>|":
$ xmodmap - << XXX keycode 133 = less greater bar XXX
Test. If it does what you want: add it to .xinitrc / .xsessionrc
If you are curious what's actually assigned to the "less" key: $ xmodmap -pk|grep '(less)'
Nik
oops, I forgot ...
Anno domini 2026 Sun, 10 May 14:19:19 +0200 Dr. Nikolaus Klepp via tde-users scripsit:
Hi!
Anno domini 2026 Sun, 10 May 11:37:41 +0200 Thierry de Coulon via tde-users scripsit:
Hello all,
I've got one of these nice Lenovo Thinkpad Keyboards (the old USB, wired type). Unfortunately, the one I got has the US layout but I use the Swiss layout. This mostly is solved with stickers, however many european languages use a layout with one more key (which is used for <, > and ). So this key is missing (physically).
Now there is that useless "Windows" key looking at me. Can I modify TDE's Swiss Keyboard Layout to re-map that key to <>\ ?
Thierry
First identify the key: $ xev -event keyboard
On my thinkpad it's "Hyper_L", "keycode 133".
Now let's assigne his to "<>|":
$ xmodmap - << XXX keycode 133 = less greater bar XXX
Test. If it does what you want: add it to .xinitrc / .xsessionrc
... you need to add a delay, so that this gets executed after TDE did it's oen keyboard setup :) e.g.:
( sleep 20 xmodmap - << XXX keycode 133 = less greater bar XXX ) &
Nik
If you are curious what's actually assigned to the "less" key: $ xmodmap -pk|grep '(less)'
Nik
Thank you Nik!
On Sunday 10 May 2026 14:27:31 Dr. Nikolaus Klepp via tde-users wrote:
First identify the key: $ xev -event keyboard
On my thinkpad it's "Hyper_L", "keycode 133".
Here it's "Super_L"
Now let's assigne his to "<>|":
$ xmodmap - << XXX keycode 133 = less greater bar XXX
Yes, works great!
Test. If it does what you want: add it to .xinitrc / .xsessionrc
I'll probably keep it as a script for now, as this keyboard is not in use everyday. But it's great to be able to use that (otherwise useless) key that way.
Again thanks!
Thierry