Hi, so I was playing Street Fighter 5, with the WASD keys and the Numpad keys. But I frequently encountered accidental presses on the Numlock during gameplay, and that would disable my attacks.
So I researched online about how to keep the Numlock option always on regardless of it’s active or inactive status. But there were no relevant results. I had looked through Gnome Tweaks earlier, and did find a setting called Numeric keypad always enters digits (as in macOS), but it did not work at all (it turns on and off with the Numlock key like before). I’ve also found that numlockx doesn’t work on Wayland, I also read in one of the Linux forums that Wayland is still under work, unlike the X Window system, and it is a little flimsy when it comes to these things, especially those that are keyboard related.
However, I found one terminal command that would enable this option:
gsettings set org.gnome.desktop.input-sources xkb-options "[‘numpad:mac’]
I was just trying out a code command based on what was written in these discussions:
https://unix.stackexchange.com/questions/599799/how-to-remap-capslock-key-in-wayland
https://unix.stackexchange.com/questions/43976/list-all-valid-kbd-layouts-variants-and-toggle-options-to-use-with-setxkbmap
This command worked. The numlock key light still comes on and off when pressed, but the numpad keys are always active.
Just thought I would put it out there for those who may be looking for it as well, in the forums or online. 
1 Like
welcome to endeavour.
you should write out how you achieved this specifically it will serve future users.
Why would one want to boot up and have this enabled anyway? A gaming thing?
Thank you for your welcome. Very glad to be here.
It is a gaming thing. It was interfering with my gameplay (I couldn’t do the moves I wanted).
But generally also, I’ve never found any use for whatever Numpad keys do apart from entering the numbers themselves (probably because I’m a millenial, who already have the keys for what they do on the keyboard anyway, as I just learned: https://en.wikipedia.org/wiki/Num_Lock).
So this is a setting that I would always have enabled, regardless.
As for how I achieved it, I just entered the command into the terminal really. I was aware of there probably being a setting called ‘numpad:mac’ in the distro, and I found the other command, gsettings set org.gnome.desktop.input-sources xkb-options
which changes keyboard settings on Wayland. I tried putting them together, and it worked. Yay!
the best discoveries are trial and error. I read some search engine results about numpad:mac. My eyes glazed over
! What was interesting is this seems like an X11 fix only but I couldn’t figure out why. Also of note was the Arch-specific solution of using systemd to enable numlock on boot https://wiki.archlinux.org/title/Activating_numlock_on_bootup
always more than one way to skin a cat on linux
Neither using KDE nor Wayland (I have X11/Cinnamon), just a question: On KDE/Wayland, do we have the same keyboard settings as on, say, Cinnamon?
Because I can simply go Settings → Keyboard → Layouts → Options. Then, under Compatibility Options, I have this setting (sorry German system):
In KDE you can go to System Settings → Keyboard and choose Turn On, Turn Off, or Leave Unchanged which uses your bios setting.
1 Like
Well leave unchanged might be supposed to use the BIOS setting but I still have to use the on option every time, despite the fact the BIOS setting is numlock on, maybe a bug ?
1 Like
Maybe. I always leave it set to turn on so I know I’ll get the setting I want.