You are not logged in.
Pages: 1
So, I have a t460 and for some reason Lenovo has put an evil sadist in charge of Keyboard Layout. Most of his/her decisions i have learnt to live with but one thing drives me insane. There is no menu key, and where the menu key should have been, between *Alt Gr* and *Right Ctrl* , they have put the *Print screen* key.
So here is what i'm trying to do:
Remap PrtSc to Menu
map Fn + PrtSc to Print Screen
I have tried reading the wikis, but i don't understand it. Is this possible and how should i go about doing it?
I write in a few different languages so it would be preferable if this worked regardless of keyboard layout.
Here is some relevant info:
$ uname -r
4.19.8-arch1-1-ARCH
$ gnome-shell --version
GNOME Shell 3.30.2
$ xev -event keyboard
// Fn-key:
KeyPress event, serial 28, synthetic NO, window 0x3800001,
root 0x188, subw 0x0, time 9516939, (697,606), root:(792,768),
state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x3800001,
root 0x188, subw 0x0, time 9516948, (697,606), root:(792,768),
state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
// PrtSc:
KeymapNotify event, serial 26, synthetic NO, window 0x0,
keys: 4294967176 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ sudo showkey
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
keycode 143 press // Fn
keycode 143 release // Fn
keycode 99 press // PrtSc
keycode 99 release // PrtSc
Offline
PrtSc is currently obtained by some global shortcut (probably some gnome screenshot tool)
Try to run a "naked" X11 server (eg. just an openbox session) and obtain the xev output for Fn+PrtScr to figure what event is generated by the combo (if any) to either xmodmap the keys or alter an xkb definition accordingly.
Offline
Pages: 1