Switch NumLock on at startup in Xfce4

There are many ways to switch on NumLock in Linux. Some methods do not work. I used this one before:

1. Switch NumLock on at startup using numlockx in .xinitrc

apt install numlockx

cat .xinitrc
#!/bin/sh

if [ -e /usr/bin/numlockx ]; then
  /usr/bin/numlockx on
fi

But now i prefer simpler way, using Xfce4 settings.

2. Enable NumLock in Xfce4 settings

Go to Main button (Applications) - Settings - Settings editor - keyboards - find property NumLock or add new property NumLock, then check field value.

This is the simplest way.

 

 

Section
Category
Tags: