I'd like to be able to use my number pad immediately after login without having to manually activate it by pressing NumLock.
Open System Settings and click Keyboard:
Switch to the tab Options
Now choose Miscellaneous compatibility options on the left side, and check Default numeric keypad keys on the right side.
This setting takes effect after Login and has no effect at the login screen or consoles.
If it doesn't work for you, try checking Numeric keypad keys always enter digits
Here is an alternative option assuming you are using the text editor that came with Elementary OS. In the terminal:
sudo scratch-text-editor /usr/share/lightdm/lightdm.conf.d/40-pantheon-greeter.conf
When it opens up in scratch, add the following line to the end of the file:
Save the file and restart the computer. At the login screen, the numlock key should be turned on. Also, when you log out, it will also remain on at the login screen.
There are several changes made on the system, so on Elementary 5 Juno you need a bit different approach.
- Install gedit from AppCenter
- Open Terminal and paste code below
gedit admin:// - opens and edits file as root, just add path to your file.
add activate-numlock=true if missing or remove # if #activate-numlock=true exits.