alols / xcape

Linux utility to configure modifier keys to act as other keys when pressed and released on their own.
GNU General Public License v3.0
2.1k stars 117 forks source link

Does not use number pad numbers #124

Open AkashaP opened 3 years ago

AkashaP commented 3 years ago

First, xset q | grep Caps - verify Num Lock is On 00: Caps Lock: off 01: Num Lock: on 02: Scroll Lock: off

Normal 9 key to number pad 1

xcape -d -e '9=KP_1'

to "KP_1" (keysym 0xffb1, key code 87)
sig_handler running...
Intercepted key event 3, key code 36
Intercepted key event 2, key code 18
Key pressed!
9Intercepted key event 3, key code 18
Key released!
Generating KP_End!
Ignoring generated event.
Ignoring generated event.
1

note how it says KP_End instead of KP_1. KP_End is what is sent when numlock is off. Despite that, 1 is sent and not end

Now reverse the command xcape -d -e 'KP_1=9'

to "9" (keysym 0x39, key code 18)
sig_handler running...
Intercepted key event 3, key code 36
Intercepted key event 2, key code 87
1Intercepted key event 3, key code 87
Intercepted key event 2, key code 87
1Intercepted key event 3, key code 87
Intercepted key event 2, key code 87
1Intercepted key event 3, key code 87

keypad 1 is not detected