Am Dienstag, 4. Februar 2014 schrieb David C. Rankin:
On 02/04/2014 12:14 PM, Darrell Anderson wrote:
I'm referring to the right Win key. The left
Win key doesn't do
anything on my system. I want to disable the right Win key because
I am tired of the popup menus appearing when I inadvertently bump
the key.
I spent about a half-hour last night trying to figure out how to
disable the right Win key. I still haven't found a way. I'd settle
for an xorg.conf solution too if I can fid one.
God that is frustrating, and I think Michele is correct, the base definitions
will be in the xkb definitions outside tde. Now the way tde handles them may be
tweaked. It has been years since I chased that rabbit down, but if you don't
find an option to change it in tde, then it is a pass-through from xkb and you
will have to see what tde does to catch the other keys and probably add a
specific catch for the rt-win.
The xmodkeymap approach:
Start "xev" and figure out what your right Win key is. On my keyboard
pressing/releasing it gives these events:
KeyPress event, serial 39, synthetic NO, window 0x3200001,
root 0x29a, subw 0x0, time 43557188, (171,-13), root:(233,415),
state 0x2000, keycode 134 (keysym 0xffec, Super_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 39, synthetic NO, window 0x3200001,
root 0x29a, subw 0x0, time 43557236, (171,-13), root:(233,415),
state 0x2040, keycode 134 (keysym 0xffec, Super_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
So my keycode for "right Win" is 134. Now let's remap it - every decent
programmer needs lambda on his thumbs:
$ xmodmap - << XXX
keycode 134 = Greek_lambda
XXX
or disable the key:
$ xmodmap - << XXX
keycode 134 =
XXX
I put this in my .xinitrc and added this xinit.desktop-entry to .trinity/Autostart - just
the Exec-Line is important:
[Desktop Entry]
Exec[$e]=bash '/home/nik/.xinitrc'
hope it helps.
Nik
--
Please do not email me anything that you are not comfortable also sharing with the NSA.
Dr. Nikolaus Klepp
Einnehmerstraße 14
A-4810 Gmunden
Tel.: +43 650 82 11 724
email: office(a)klepp.biz