Ubuntu 16.04 - Turn NumLock on and disable NumLock key permanently
As the title suggests, I'm looking for a way to turn NumLock on and disable the NumLock key permanently. There is a solution here: https://help.ubuntu.com/community/NumLock, but I've not been able to find the "keyboard layout options" menu in Ubuntu 16.04 (there's only "Keyboard" and "Text Entry" in System Settings). The other thing I've tried is add the following commands to Startup Applications:
numlockx on && xmodmap -e "keycode 77 = """
This does not work either, and causes errors on startup. Is there a nice clean way to get this done?
Thanks.
After a bit of searching, I seem to have found a solution - Install "Gnome tweak tools" and under Typing-->Miscellaneous Compatibility Options, set "Numeric keypad keys always enter digits".
Use
xmodmap -e 'keycode 77 = NoSymbol Num_Lock'
in Startup Applications, this worked for me best, no need for numlockx on
as it should be on by default.
I've made to turn on numlock automatically after system booting up with adding this line: greeter-setup-script=/usr/bin/numlockx on
to the file /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
See more here: Enable Numlock on Login