Actually, I configured this tool GitHub - samvel1024/kbct: Keyboard keycode mapping utility for Linux supporting layered configuration to mitigate the issue I posted.
I mapped: mod + x/c/v as F13, F14, F15 and mapped them to cut/copy/paste via kbct.
So I’ve just tried to do the same with UHK agent, but it seems that neither of B141, M141, S141 worked correctly.
I’m using xev
program to get scan codes, when I map key to B141, xev prints different code:
KeyRelease event, serial 34, synthetic NO, window 0x7800001,
root 0x28c, subw 0x0, time 78862559, (-137,683), root:(1307,707),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
This one is the output I get for correctly mapped copy key (via kbct tool)
KeyRelease event, serial 34, synthetic NO, window 0x7800001,
root 0x28c, subw 0x0, time 78899465, (-172,913), root:(1272,937),
state 0x0, keycode 141 (keysym 0x1008ff57, XF86Copy), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
p.s. S141 / M141 - codes have not even trigger any event in xev.