You are not logged in.

#1 2020-07-01 02:45:27

Coalms
Member
Registered: 2020-04-22
Posts: 59

[SOLVED]xkb change numpad/keypad state

Hello,

I have damaged my arrows and decided to use the keypad,the problem is i can't use SHIFT+Keypad Arrow since it prints out the number

While trying to figure out how to remap the whole keypad the way i need i found in /usr/share/X11/xkb/types/numpad
the "Swiss-German style numeric keypad, which the way I understand it is just what I need

Can't figure out how to enable it though,and cant find any entries on X keyboard extension on the wiki or anything about numpad or keypad specifically


On another note,moving the word default from the first line down to the line the function i want to use is dosen't allow the user to login even in tty after reboot/usb arch-chroot on the rescue

Last edited by Coalms (2020-07-03 05:28:23)

Offline

#2 2020-07-01 06:17:24

seth
Member
Registered: 2012-09-03
Posts: 51,143

Re: [SOLVED]xkb change numpad/keypad state

setxkbmap -option numpad:shift3

Just tested: shift+arrow only works while numlock is on, arrow keys (as usual) when it's off.
Bit odd combination.

Offline

#3 2020-07-01 14:05:59

Coalms
Member
Registered: 2020-04-22
Posts: 59

Re: [SOLVED]xkb change numpad/keypad state

seth wrote:
setxkbmap -option numpad:shift3

Just tested: shift+arrow only works while numlock is on, arrow keys (as usual) when it's off.
Bit odd combination.

It kind of works,im some programs (works on nano,dosent on vim or any browser ,works on text files)
acts wierdly I have to say,if any idea comes up for a better use of this way please,Im all ears ,for giving me the answer at least thank you

Offline

#4 2020-07-02 22:34:55

seth
Member
Registered: 2012-09-03
Posts: 51,143

Re: [SOLVED]xkb change numpad/keypad state

On a closer look, the option actually just changes the numlock breaking behavior of shift and even turns it into the 3rd level.
Try "setxkbmap -option numpad:microsoft" instead - I assume that's what you long for?

Offline

#5 2020-07-03 05:27:59

Coalms
Member
Registered: 2020-04-22
Posts: 59

Re: [SOLVED]xkb change numpad/keypad state

seth wrote:

On a closer look, the option actually just changes the numlock breaking behavior of shift and even turns it into the 3rd level.
Try "setxkbmap -option numpad:microsoft" instead - I assume that's what you long for?

Huh...thought I tried that ,after your first post....aaaaaaaaand that solved my problem

Thanks dude,you're awesome

Offline

#6 2021-05-30 23:14:32

sergiomb
Member
Registered: 2016-08-14
Posts: 4

Re: [SOLVED]xkb change numpad/keypad state

Hello, I was looking for the same thing and inspired by this topic
I made this patch [1], simply the SHIFT does not change the base key to number and vice versa, what do you think?
to test in your computer just edit /usr/share/X11/xkb/types/numpad  and in line 3 change to:
modifiers = NumLock;
delete lines 4, 5 and 7 (as is in the patch), after restart computer.

Maybe we could propose this patch to upstream ... 

Best regards,

[1]
https://gitlab.freedesktop.org/sergiomb … 22d07a74e1

Last edited by sergiomb (2021-05-30 23:15:41)

Offline

#7 2021-06-02 21:25:30

sergiomb
Member
Registered: 2016-08-14
Posts: 4

Re: [SOLVED]xkb change numpad/keypad state

I propose a even simpler and better solution just disable SHIFT on non-number case https://gitlab.freedesktop.org/xkeyboar … quests/229

Offline

Board footer

Powered by FluxBB