One annoying little things about being a KDE user, whether I’m running LMDE or any other version of KDE is that it seems to ignore my setting to leave my system’s NumLock setting (on) alone when it starts. The problem is that KDM, the KDE Desktop Manager and also known as the Login Manager, loads in before the main part of KDE does so the BIOS setting is already changed by the time KDE ignores the possibility of changing the setting. Thanks to the good folks over at Make Tech Easier I’ve found a trick that fixes the misbehavior.
KDM has its own startup script called Xsetup, and will execute anything in that file before KDE itself launches. To make sure KDE turns on the NumLock, or to make sure it stays on, you can install an app called numlockx and use the app to turn the NumLock on before the main part of KDE even loads. To do this just follow these steps:
- Install
numlockx. You can do it via a package manager or open up a Konsole window and runsudo apt-get install numlockx. - Open Xsetup as root by pressing Alt-F2 (or whatever key combination you’ve set to launch the Run Command Interface) and run
kdesudo kate /etc/kde4/kdm/Xsetup. - At the bottom of the file* add
numlockx onand save the file.
That’s really all there is to it. The next time you boot your system into KDE the NumLock will be enabled for you automatically. Please remember that anything you put into Xsetup will be run as root and will be available to any user who boots into KDE on your computer so be very careful not to put anything into that file that could break your system. But you’re not restricted to using Xsetup for things like turning on your NumLock. The article from Make Tech Easier uses the example of configuring your display settings before KDE starts, and I’m sure there are other things that could be done this way.
*-If your Xsetup includes the line
x/sbin/initctl -q emit login-session-start DISPLAY_MANAGER=kdm
you want to put whatever you’re adding to the file before this line.




Gmail filters, once I read them I simply click the X box beside the Inbox label.Voila! The message has been archived without dumping you to your inbox.






