Hello!
I’m new to both wayland and KDE, not new to Linux though.
Previously I liked to map the PrtSc (seen on the pic; this kb does not have a dedicated menu key) to the Menu key, i.e. I could pop up the context menu of a selected item with a key. On this same machine, under Xorg/Openbox.
It’s a Thinkpad T430s. In System Settings => keyboard it was first configured as a generic 104 key PC keyboard, now as a generic 105 key PC keyboard (just to try something I hadn’t tried yet).
localectl
System Locale: LANG=en_GB.UTF-8
LC_NUMERIC=en_IE.UTF-8
LC_TIME=en_IE.UTF-8
LC_MONETARY=en_IE.UTF-8
LC_PAPER=en_IE.UTF-8
LC_NAME=en_IE.UTF-8
LC_ADDRESS=en_IE.UTF-8
LC_TELEPHONE=en_IE.UTF-8
LC_MEASUREMENT=en_IE.UTF-8
LC_IDENTIFICATION=en_IE.UTF-8
VC Keymap: fi
X11 Layout: fi
X11 Model: pc105
I cannot get this to work. What I tried:
1: create ~/.config/xkb/symbols/fi:
partial alphanumeric_keys
xkb_symbols "menu" {
name[Group1]= "Menu (FI)";
include "fi(fi)"
key <PRSC> { [ Menu ] };
};
log out/in - I cannot get the desired outcome (tested in Dolphin and Librewolf browser)
2: create /etc/udev/hwdb.d/99-builtin-keyboard-remap-prtsc.hwdb:
evdev:name:AT Translated Set 2 keyboard:*
KEYBOARD_KEY_b7=menu
I checked with evtest; this is the correct hex keycode and hopefully the correct menu key.
evtest seems to indicate that this worked:
Event: time 1789412840.200682, type 4 (EV_MSC), code 4 (MSC_SCAN), value b7
Event: time 1789412840.200682, type 1 (EV_KEY), code 139 (KEY_MENU), value 1
(Before it registered as SYSRQ or SYS_RQ)
I rebooted just to be sure.
But again, it doesn’t.
I tried to log into a labwc session and installed pcmanfm (simpler filemanager), even under a different user. I can never get this key to pop up the context menu.
3: ydotool
Just to be sure, I undid the hwdb tweaking, rebooted, and told ydotool to press & release the menu key:
sleep 5; ydotool key -d 100 139:1 139:0
and sitched to a Dolphin or Librewolf window - nothing.
Lastly, I checked in System Settings => Keyboard => Keybindings => Miscellaneous options => Use user-defined custom XKB types, reinstated the file from 1: and logged out/in - still nothing.
Am I missing something here?
TIA

