How to activate numlock on by default in openSUSE with Xfce
You have openSUSE with Xfce desktop environment installed and you want to turn numlock on by default so that you can use the number-pad on your keyboard at the login screen and after logging-in to Xfce desktop. This should have been the default behavior but sadly it’s not! Anyway, it’s an easy problem to fix. This solution is written for openSUSE but it should work on almost all GNU/Linux distributions with Xfce desktop environment and LightDM display manager.
First and foremost, you need to install a little utility called
numlockx. To do so, open your terminal emulator and run the following command,
sudo zypper install numlockx
Next, create a blank file with the name
/usr/share/lightdm/lightdm.conf.d directory. To do so, run this command in the terminal emulator,
sudo touch /usr/share/lightdm/lightdm.conf.d/60-numlock.conf
Now open this file as root or with sudo permissions in your favorite text-editor and paste the following code snippet into the file and save the changes,
[Seat:*] greeter-setup-script=/usr/bin/numlockx on
Final step is to make a tiny change in the
Keyboard settings. You can navigate to this settings window like this,
Menu => Settings => Keyboard
And in the
Keyboard settings window you’ll find
Restore num lock state on startup option in the
General section under the
Behavior tab. Enable this by clicking on the check mark box.
That’s it! This will keep numlock on by default all the way from logging screen and onto the Xfce desktop session.
I don't have comments on this blog as they not only are difficult to manage, but are also prone to privacy and security risks.
Instead of leaving a comment, you could email me directly.